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
/
shorthand-meta.nix
blob
8c9619e18a2ab8dd94f93ef6926f129bde8529a6
1
{ lib, ... }:
2
let
3
inherit (lib) types mkOption;
4
in
5
{
6
imports = [
7
({ config, ... }: {
8
options = {
9
meta.foo = mkOption {
10
type = types.listOf types.str;
11
};
12
result = mkOption { default = lib.concatStringsSep " " config.meta.foo; };
13
};
14
})
15
{
16
meta.foo = [ "one" "two" ];
17
}
18
];
19
}