summary refs log tree commit diff
path: root/lib/tests/modules/import-from-store.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tests/modules/import-from-store.nix')
-rw-r--r--lib/tests/modules/import-from-store.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/tests/modules/import-from-store.nix b/lib/tests/modules/import-from-store.nix
new file mode 100644
index 00000000000..64e7ec2e388
--- /dev/null
+++ b/lib/tests/modules/import-from-store.nix
@@ -0,0 +1,17 @@
+{ lib, ... }:
+let
+  drv = derivation {
+    name = "derivation";
+    system = builtins.currentSystem;
+    builder = "/bin/sh";
+    args = [ "-c" "echo {} > $out" ];
+  };
+in {
+
+  imports = [
+    "${drv}"
+    ./declare-enable.nix
+    ./define-enable.nix
+  ];
+
+}