about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-11-07 12:09:38 +0100
committerPeter Simons <simons@cryp.to>2013-11-07 12:14:19 +0100
commitf92a5cbfc61fe0778af7137afa6ae3cd79470180 (patch)
tree49b672fb482a7a307e525edffadda0318c2dbcbc /pkgs/development/compilers
parent89c566fcfd40a82a98d4e674e3aaa6d57d20cceb (diff)
downloadnixlib-f92a5cbfc61fe0778af7137afa6ae3cd79470180.tar
nixlib-f92a5cbfc61fe0778af7137afa6ae3cd79470180.tar.gz
nixlib-f92a5cbfc61fe0778af7137afa6ae3cd79470180.tar.bz2
nixlib-f92a5cbfc61fe0778af7137afa6ae3cd79470180.tar.lz
nixlib-f92a5cbfc61fe0778af7137afa6ae3cd79470180.tar.xz
nixlib-f92a5cbfc61fe0778af7137afa6ae3cd79470180.tar.zst
nixlib-f92a5cbfc61fe0778af7137afa6ae3cd79470180.zip
pkgs/development/compilers/ghc/with-packages.nix: add 'ignoreCollisions' parameter
The ghcWithPackage expression now has an argument 'ignoreCollisions' that
allows users to disable the path collision check like so:

  (pkgs.haskellPackages.ghcWithPackages (pkgs: with pkgs; [ haskellPlatform ])).override { ignoreCollisions = true; };

See https://github.com/NixOS/nixpkgs/commit/d64917ad17277b8e16893ee31533ec2e33446fa7
for a long and detailed discussion of why these path collisions may occur.
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/ghc/with-packages.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/with-packages.nix b/pkgs/development/compilers/ghc/with-packages.nix
index 8f5e8616a84e..4508f0f529b5 100644
--- a/pkgs/development/compilers/ghc/with-packages.nix
+++ b/pkgs/development/compilers/ghc/with-packages.nix
@@ -1,4 +1,4 @@
-{ stdenv, ghc, packages, buildEnv, makeWrapper }:
+{ stdenv, ghc, packages, buildEnv, makeWrapper, ignoreCollisions ? false }:
 
 assert packages != [];
 
@@ -12,6 +12,7 @@ in
 buildEnv {
   name = "haskell-env-${ghc.name}";
   paths = stdenv.lib.filter isHaskellPkg (stdenv.lib.closePropagation packages) ++ [ghc];
+  inherit ignoreCollisions;
   postBuild = ''
     . ${makeWrapper}/nix-support/setup-hook