haskell-generic-builder: allow use of 'env' attributes in nix-shell

We disabled this to prevent users from accidentally running nix-build on
an 'env' attribute, but in fact the ability to use those in combination
with "nix-shell -p" is quite useful, so the restriction is lifted.
This commit is contained in:
Peter Simons 2015-04-01 13:57:03 +02:00
parent 59a1969f88
commit 7eda2f9ebb

View file

@ -267,12 +267,6 @@ stdenv.mkDerivation ({
export NIX_GHC_DOCDIR="${ghcEnv}/share/doc/ghc/html"
export NIX_GHC_LIBDIR="${ghcEnv}/lib/${ghcEnv.name}"
'';
buildCommand = ''
echo >&2 ""
echo >&2 "*** Haskell 'env' attributes are intended for interactive nix-shell sessions, not for building! ***"
echo >&2 ""
exit 1
'';
};
};