[Nix-dev] ghc-7.6.3 vs haskellPlatform collision

Sergey Mironov grrwlf at gmail.com
Wed Nov 6 13:47:51 CET 2013


Hi.
I install ghc  on a  system-wide basis using the following template (I
have only 2 packages in the list: haskellPlatform and cabalInstall)

{ config, pkgs, ... } :

let

  haskpkgs = self : [
    self.haskellPlatform
    self.cabalInstall
  ];

in {

  nixpkgs.config = {

    packageOverrides = pkgs: {

      haskell_7_6 = (pkgs.haskellPackages_ghc763.ghcWithPackages haskpkgs);

    };
  };
}



Unfortunately, after recent update nixos reports a collision

building path(s)
`/nix/store/d8s6zl95q1bcycn2r9jyrkb5d1g9j9lj-haskell-env-ghc-7.6.3'
building /nix/store/d8s6zl95q1bcycn2r9jyrkb5d1g9j9lj-haskell-env-ghc-7.6.3
collision between
`/nix/store/p01hdsfn3hhkwynwa32zi2y01sch2pa7-ghc-7.6.3/lib/ghc-7.6.3/filepath-1.3.0.1/libHSfilepath-1.3.0.1-ghc7.6.3.so'
and `/nix/store/8jahygmb98mpxzziwf3facnp3z3v1m2h-ghc-7.6.3-wrapper/lib/ghc-7.6.3/filepath-1.3.0.1/libHSfilepath-1.3.0.1-ghc7.6.3.so'
at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 72.

Removing haskellPlatform from the package list helps, but what can I
do to keep it and solve the collision?

Thanks in advance,
Sergey


More information about the nix-dev mailing list