@@ -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