mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
haskellPackages.callCabal2nix: provide fallback name if source is not package
This commit is contained in:
parent
e4fe2165a0
commit
8454a9e753
@ -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