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