aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/lib/tests/modules/declare-either.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/lib/tests/modules/declare-either.nix')
-rw-r--r--nixpkgs/lib/tests/modules/declare-either.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixpkgs/lib/tests/modules/declare-either.nix b/nixpkgs/lib/tests/modules/declare-either.nix
new file mode 100644
index 00000000000..5a0fa978a13
--- /dev/null
+++ b/nixpkgs/lib/tests/modules/declare-either.nix
@@ -0,0 +1,5 @@
+{ lib, ... }: {
+ options.value = lib.mkOption {
+ type = lib.types.either lib.types.int lib.types.str;
+ };
+}