haskell-generic-builder: consistently use $TMPDIR to refer to the designated place for temporary files

Resolves https://github.com/NixOS/nixpkgs/issues/6525.
This commit is contained in:
Peter Simons 2015-02-23 11:45:49 +01:00
parent e2b033cad9
commit c4ff9d10ba

View File

@ -129,7 +129,7 @@ stdenv.mkDerivation ({
export PATH="${ghc}/bin:$PATH"
${optionalString (hasActiveLibrary && hyperlinkSource) "export PATH=${hscolour}/bin:$PATH"}
packageConfDir="$TMP/package.conf.d"
packageConfDir="$TMPDIR/package.conf.d"
mkdir -p $packageConfDir
setupCompileFlags="${concatStringsSep " " setupCompileFlags}"