simpleFlake: support defaultPackage and devShell
This commit is contained in:
parent
e34fcedfc7
commit
a586a6b966
|
@ -56,10 +56,21 @@ let
|
|||
|
||||
# Flake expects a flat attrset containing only derivations as values
|
||||
packages = lib.flattenTree packages;
|
||||
} // (if shell == null then { } else {
|
||||
}
|
||||
//
|
||||
(
|
||||
if packages ? defaultPackage then {
|
||||
defaultPackage = packages.defaultPackage;
|
||||
} else { }
|
||||
)
|
||||
//
|
||||
(
|
||||
if shell != null then {
|
||||
devShell = shell_ { inherit pkgs; };
|
||||
})
|
||||
} else if packages ? devShell then {
|
||||
devShell = packages.devShell;
|
||||
} else { }
|
||||
)
|
||||
);
|
||||
|
||||
in
|
||||
outputs
|
||||
|
|
Loading…
Reference in New Issue