add support for new style of defaults #37

Merged
Artturin merged 1 commit from addsupportfornewshcmea into master 2022-03-25 09:10:09 +00:00

View file

@ -189,9 +189,11 @@ in
rec {
defaultNix =
result
// (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 {});
shellNix =
defaultNix
// (if result ? devShell.${system} then { default = result.devShell.${system}; } else {});
// (if result ? devShell.${system} then { default = result.devShell.${system}; } else {})
// (if result ? devShells.${system}.default then { default = result.devShells.${system}.default; } else {});
}