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 b8bf8e502c
commit d3dd218bc2

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}"