From 7eda2f9ebb96d21060e51bc13c926b0f906f1a28 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 1 Apr 2015 13:57:03 +0200 Subject: [PATCH] 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. --- pkgs/development/haskell-modules/generic-builder.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 8474cab667c..11bbe550b2d 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -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 - ''; }; };