mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2025-02-17 05:35:02 +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
|
--prefix PATH : ${ghc}/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = pkgs.lib.optionalString pkgs.stdenv.isDarwin ''
|
||||||
|
wrapProgram $out/bin/compile-proto-file \
|
||||||
|
--prefix DYLD_LIBRARY_PATH : ${grpc}/lib
|
||||||
|
'';
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export DYLD_LIBRARY_PATH=${grpc}/lib''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH
|
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.
|
# This lets us use our custom ghc and python environments in the shell.
|
||||||
|
|
Loading…
Add table
Reference in a new issue