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