mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
Merge pull request #22427 from 3noch/fix-callCabal2nix
haskellPackages.callCabal2nix: provide fallback name
This commit is contained in:
commit
956c1fe3e8
@ -87,7 +87,7 @@ let
|
||||
# Creates a Haskell package from a source package by calling cabal2nix on the source.
|
||||
callCabal2nix = src: self.callPackage (haskellSrc2nix {
|
||||
inherit src;
|
||||
name = src.name;
|
||||
name = src.name or baseNameOf src;
|
||||
});
|
||||
|
||||
ghcWithPackages = selectFrom: withPackages (selectFrom self);
|
||||
|
Loading…
Reference in New Issue
Block a user