Merge pull request #47 from blaggacao/master

fix: top level functors break legacy nix commands
This commit is contained in:
Eelco Dolstra 2022-11-17 11:41:32 +01:00 committed by GitHub
commit 009399224d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,7 +189,7 @@ let
in
rec {
defaultNix =
result
(builtins.removeAttrs result ["__functor"])
// (if result ? defaultPackage.${system} then { default = result.defaultPackage.${system}; } else {})
// (if result ? packages.${system}.default then { default = result.packages.${system}.default; } else {});