From 9bca29d4efe614e12578b8dbf1d60df94b517ab6 Mon Sep 17 00:00:00 2001 From: Christian Gram Kalhauge Date: Thu, 21 Jul 2016 14:23:56 +0200 Subject: [PATCH] Change if to optionalString --- pkgs/development/haskell-modules/generic-builder.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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