Merge pull request #37 from Artturin/addsupportfornewshcmea
add support for new style of defaults
This commit is contained in:
commit
64a525ee38
|
@ -190,9 +190,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 {});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue