mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
Merge pull request #22469 from peti/fix-callCabal2nix
callCabal2nix: take "name" parameter as a function argument
This commit is contained in:
commit
334657518d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user