diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index faca3f2dff17..48467acbca66 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -193,10 +193,8 @@ stdenv.mkDerivation ({ fi if [ -d "$p/lib" ]; then configureFlags+=" --extra-lib-dirs=$p/lib"${ - if stdenv.isDarwin then + stdenv.lib.optionalString stdenv.isDarwin "; export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$p/lib;" - else - "" } fi done