Fix compile-proto-file on OS X (#90)

Before this change, `compile-proto-file` fails due to a missing `grpc` library.
After this change `compile-proto-file` runs successfully on OS X
This commit is contained in:
Gabriel Gonzalez 2017-02-14 15:39:43 -08:00 committed by GitHub Enterprise
parent 9a3be32ed7
commit 8732a669c0

View File

@ -244,6 +244,11 @@ let
--prefix PATH : ${ghc}/bin
'';
postInstall = pkgs.lib.optionalString pkgs.stdenv.isDarwin ''
wrapProgram $out/bin/compile-proto-file \
--prefix DYLD_LIBRARY_PATH : ${grpc}/lib
'';
shellHook = ''
export DYLD_LIBRARY_PATH=${grpc}/lib''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH
# This lets us use our custom ghc and python environments in the shell.