haskell: default name to "" when root isn't a path in developPackage

See https://github.com/NixOS/nixpkgs/issues/103062
This commit is contained in:
Joe Hermaszewski 2020-11-07 16:29:10 +08:00
parent 3452368788
commit a3830da1aa

View File

@ -249,7 +249,7 @@ in package-set { inherit pkgs lib callPackage; } self // {
# a cabal flag with '--flag=myflag'.
developPackage =
{ root
, name ? builtins.baseNameOf root
, name ? if builtins.typeOf root == "path" then builtins.baseNameOf root else ""
, source-overrides ? {}
, overrides ? self: super: {}
, modifier ? drv: drv