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