git.iko.soy/typeable/nixpkgs
on master help sign in
Reduce computation time for non-darwin users
commitde5a2ee03476180fef621a35d1efbdfdd4b1bb86 authorChristian Gram Kalhauge <christian@kalhauge.dk> dateThu 21 Jul 2016, 11:39 (10 years ago) parentab46f69
1 file changed+6−4
pkgs/development/haskell-modules/generic-builder.nix+6−4
pkgs/development/haskell-modules/generic-builder.nix+6−4
@@ -192,10 +192,12 @@ stdenv.mkDerivation ({
192192 configureFlags+=" --extra-include-dirs=$p/include"
193193 fi
194194 if [ -d "$p/lib" ]; then
195− configureFlags+=" --extra-lib-dirs=$p/lib"
196− if [[ ${ if stdenv.isDarwin then "yes" else "no"} = "yes" ]]; then
197− export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$p/lib;
198− fi
195+ configureFlags+=" --extra-lib-dirs=$p/lib"${
196+ if stdenv.isDarwin then
197+ "; export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$p/lib;"
198+ else
199+ ""
200+ }
199201 fi
200202 done
201203 ${ghcCommand}-pkg --${packageDbFlag}="$packageConfDir" recache