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
Merge pull request #298967 from vbgl/ocaml-5.2.0
[NixPkgs.git]
/
lib
/
tests
/
modules
/
functionTo
/
trivial.nix
blob
0962a0cf893d320ed0f2cd81b719ff2991019c3d
1
{ lib, config, ... }:
2
let
3
inherit (lib) types;
4
in {
5
options = {
6
fun = lib.mkOption {
7
type = types.functionTo types.str;
8
};
9
10
result = lib.mkOption {
11
type = types.str;
12
default = config.fun "input";
13
};
14
};
15
16
config.fun = input: "input is ${input}";
17
}