Merge pull request #22427 from 3noch/fix-callCabal2nix

haskellPackages.callCabal2nix: provide fallback name
This commit is contained in:
Peter Simons 2017-02-05 19:37:19 +01:00 committed by GitHub
commit 956c1fe3e8

View File

@ -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);