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
/
wrong-type.nix
blob
fd65b75088dae61dc10a21234b304af17579e359
1
2
{ lib, config, ... }:
3
let
4
inherit (lib) types;
5
in {
6
options = {
7
fun = lib.mkOption {
8
type = types.functionTo types.str;
9
};
10
11
result = lib.mkOption {
12
type = types.str;
13
default = config.fun 0;
14
};
15
};
16
17
config.fun = input: input + 1;
18
}