git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #17145 from kalhauge/haskell_darwin_dyld

haskell-ghc: fix darwin issue

commitb89fa5fd5cc3e7d27fb87bc792fe0d6553aec28d authorPeter Simons <simons@cryp.to> dateSat 10 Sep 2016, 22:11 (10 years ago) parente4b146b1a08805
1 file changed+3
pkgs/development/haskell-modules/generic-builder.nix+3
pkgs/development/haskell-modules/generic-builder.nix+3
@@ -193,6 +193,9 @@ stdenv.mkDerivation ({
193193 fi
194194 if [ -d "$p/lib" ]; then
195195 configureFlags+=" --extra-lib-dirs=$p/lib"
196+ ${ stdenv.lib.optionalString stdenv.isDarwin
197+ "export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$p/lib"
198+ }
196199 fi
197200 done
198201 ${ghcCommand}-pkg --${packageDbFlag}="$packageConfDir" recache