mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03: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