Add an option for the toplevel derivation

This commit is contained in:
r-vdp 2025-02-03 17:10:39 +01:00
parent 196586a97d
commit f6ae6d0ee8
No known key found for this signature in database
2 changed files with 9 additions and 0 deletions

View file

@ -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;

View file

@ -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;
}; };