summary refs log tree commit diff
path: root/lib/tests/modules/types-anything/attrs-coercible.nix
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2020-09-22 18:31:56 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2020-09-22 18:31:56 +0200
commit7bff759fac26f1312d08e78bb0f654139b96e798 (patch)
tree06667a122322d925261f6a7c032f4cfd962d28d8 /lib/tests/modules/types-anything/attrs-coercible.nix
parentc24b9331e038e49199abf887e966bd0c6b7b96a0 (diff)
parente3607652b6dd8cba9d1501cbf44b975a7b159cfa (diff)
downloadnixpkgs-7bff759fac26f1312d08e78bb0f654139b96e798.tar
nixpkgs-7bff759fac26f1312d08e78bb0f654139b96e798.tar.gz
nixpkgs-7bff759fac26f1312d08e78bb0f654139b96e798.tar.bz2
nixpkgs-7bff759fac26f1312d08e78bb0f654139b96e798.tar.lz
nixpkgs-7bff759fac26f1312d08e78bb0f654139b96e798.tar.xz
nixpkgs-7bff759fac26f1312d08e78bb0f654139b96e798.tar.zst
nixpkgs-7bff759fac26f1312d08e78bb0f654139b96e798.zip
Merge staging-next into staging
Diffstat (limited to 'lib/tests/modules/types-anything/attrs-coercible.nix')
-rw-r--r--lib/tests/modules/types-anything/attrs-coercible.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/tests/modules/types-anything/attrs-coercible.nix b/lib/tests/modules/types-anything/attrs-coercible.nix
new file mode 100644
index 00000000000..085cbd638f1
--- /dev/null
+++ b/lib/tests/modules/types-anything/attrs-coercible.nix
@@ -0,0 +1,12 @@
+{ lib, ... }: {
+
+  options.value = lib.mkOption {
+    type = lib.types.anything;
+  };
+
+  config.value = {
+    outPath = "foo";
+    err = throw "err";
+  };
+
+}