mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-26 21:19:43 +01:00
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:
parent
9a3be32ed7
commit
8732a669c0
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue