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
/
functionTo
/
merging-list.nix
blob
15fcd2bdcc42d79192a0cf43745c0a01ccec4243
1
{ lib, config, ... }:
2
let
3
inherit (lib) types;
4
in {
5
options = {
6
fun = lib.mkOption {
7
type = types.functionTo (types.listOf types.str);
8
};
9
10
result = lib.mkOption {
11
type = types.str;
12
default = toString (config.fun {
13
a = "a";
14
b = "b";
15
c = "c";
16
});
17
};
18
};
19
20
config.fun = lib.mkMerge [
21
(input: [ input.a ])
22
(input: [ input.b ])
23
];
24
}