fix: top level functors break legacy nix commands #47

Merged
blaggacao merged 1 commit from master into master 2022-11-17 10:41:32 +00:00

View file

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