Merge pull request #22469 from peti/fix-callCabal2nix

callCabal2nix: take "name" parameter as a function argument
This commit is contained in:
Peter Simons 2017-02-06 11:46:29 +01:00 committed by GitHub
commit 334657518d

View File

@ -85,10 +85,7 @@ let
callHackage = name: version: self.callPackage (hackage2nix name version);
# Creates a Haskell package from a source package by calling cabal2nix on the source.
callCabal2nix = src: self.callPackage (haskellSrc2nix {
inherit src;
name = src.name or baseNameOf src;
});
callCabal2nix = name: src: self.callPackage (haskellSrc2nix { inherit src name; });
ghcWithPackages = selectFrom: withPackages (selectFrom self);