fix: top level functors break legacy nix commands

see: https://github.com/divnix/std/issues/186
This commit is contained in:
David Arnold 2022-11-14 20:27:18 -05:00
parent b4a34015c6
commit 6f56392cc4
No known key found for this signature in database
GPG key ID: 0318D822BAC965CC

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 {});