summaryrefslogtreecommitdiffstats
path: root/lib/tests
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tests')
-rw-r--r--lib/tests/modules/import-from-store.nix12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/tests/modules/import-from-store.nix b/lib/tests/modules/import-from-store.nix
index 64e7ec2e388c..f5af22432ce1 100644
--- a/lib/tests/modules/import-from-store.nix
+++ b/lib/tests/modules/import-from-store.nix
@@ -1,17 +1,11 @@
{ lib, ... }:
-let
- drv = derivation {
- name = "derivation";
- system = builtins.currentSystem;
- builder = "/bin/sh";
- args = [ "-c" "echo {} > $out" ];
- };
-in {
+{
imports = [
- "${drv}"
+ "${builtins.toFile "drv" "{}"}"
./declare-enable.nix
./define-enable.nix
];
}
+