repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vuls: init at 0.27.0
[NixPkgs.git]
/
lib
/
tests
/
modules
/
declare-submoduleWith-special.nix
blob
6b15c5bde203877e1669946b686b34cf3d1ef857
1
{ lib, ... }: {
2
options.submodule = lib.mkOption {
3
type = lib.types.submoduleWith {
4
modules = [
5
({ lib, ... }: {
6
options.foo = lib.mkOption {
7
default = lib.foo;
8
};
9
})
10
];
11
specialArgs.lib = lib // {
12
foo = "foo";
13
};
14
};
15
default = {};
16
};
17
}