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
opencomposite: add meta.platforms (#357198)
[NixPkgs.git]
/
lib
/
tests
/
modules
/
declare-submoduleWith-shorthand.nix
blob
63ac16293e2bbd7d192f9f28ccb02a31ab5a29a5
1
{ lib, ... }: let
2
sub.options.config = lib.mkOption {
3
type = lib.types.bool;
4
default = false;
5
};
6
in {
7
options.submodule = lib.mkOption {
8
type = lib.types.submoduleWith {
9
modules = [ sub ];
10
shorthandOnlyDefinesConfig = true;
11
};
12
default = {};
13
};
14
}