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
dxvk_1: fix build compatibility with GCC 14 (#360918)
[NixPkgs.git]
/
lib
/
tests
/
modules
/
default-type-merge-both.nix
blob
0b02b940f8b1b9f05faa94aa58a16f0abcac1d76
1
{ lib, options, ... }:
2
let
3
foo = lib.mkOptionType {
4
name = "foo";
5
functor = lib.types.defaultFunctor "foo" // {
6
wrapped = lib.types.int;
7
payload = 10;
8
};
9
};
10
in
11
{
12
imports = [
13
{
14
options.foo = lib.mkOption {
15
type = foo;
16
};
17
}
18
{
19
options.foo = lib.mkOption {
20
type = foo;
21
};
22
}
23
];
24
25
options.result = lib.mkOption {
26
default = builtins.seq options.foo null;
27
};
28
}