Add an option for the toplevel derivation
This commit is contained in:
parent
196586a97d
commit
f6ae6d0ee8
2 changed files with 9 additions and 0 deletions
|
|
@ -71,6 +71,10 @@ let
|
||||||
modules = [
|
modules = [
|
||||||
extraArgsModule
|
extraArgsModule
|
||||||
./modules
|
./modules
|
||||||
|
{
|
||||||
|
_file = "${self.printAttrPos (builtins.unsafeGetAttrPos "a" { a = null; })}: inline module";
|
||||||
|
build = { inherit toplevel; };
|
||||||
|
}
|
||||||
] ++ modules;
|
] ++ modules;
|
||||||
}).config;
|
}).config;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -150,6 +150,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
build = {
|
build = {
|
||||||
|
toplevel = lib.mkOption {
|
||||||
|
type = lib.types.pathInStore;
|
||||||
|
readOnly = true;
|
||||||
|
};
|
||||||
|
|
||||||
scripts = lib.mkOption {
|
scripts = lib.mkOption {
|
||||||
type = lib.types.attrsOf lib.types.package;
|
type = lib.types.attrsOf lib.types.package;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue