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
/
list-order.nix
blob
77a1a43a84f03a069ce12f17c75e171d41312545
1
2
{ lib, config, ... }:
3
let
4
inherit (lib) types;
5
in {
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 (config.fun {
14
a = "a";
15
b = "b";
16
c = "c";
17
});
18
};
19
};
20
21
config.fun = lib.mkMerge [
22
(input: lib.mkAfter [ input.a ])
23
(input: [ input.b ])
24
];
25
}