diff options
author | 3noch <eacameron@gmail.com> | 2017-02-04 02:01:10 -0500 |
---|---|---|
committer | 3noch <eacameron@gmail.com> | 2017-02-04 02:01:10 -0500 |
commit | 8454a9e75362d7c5031b927a3ee641b721453f8f (patch) | |
tree | a80780d08a638a7461a9a2d3fc01f67a9dacedc1 /pkgs/development/haskell-modules | |
parent | e4fe2165a06cde38280cb7cf2c41ba92eea531de (diff) |
haskellPackages.callCabal2nix: provide fallback name if source is not package
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r-- | pkgs/development/haskell-modules/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/default.nix b/pkgs/development/haskell-modules/default.nix index cf30a7699ed62..31b20ab19f368 100644 --- a/pkgs/development/haskell-modules/default.nix +++ b/pkgs/development/haskell-modules/default.nix @@ -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); |