about summary refs log tree commit diff
path: root/nixos/tests/misc.nix
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-03-18 01:27:04 +0100
committerNaïm Favier <n@monade.li>2022-03-18 02:44:11 +0100
commitca8c877f8cd1f9b84e8aa57741aa5cd60a3a2ba3 (patch)
tree9908d4c8cd984dbdaf355c320382b51e92b47580 /nixos/tests/misc.nix
parent79a234567c01399c5f1ae1d0b60ac84d12075b3b (diff)
nixos/tests: fix some evaluation errors
Fixes errors caught by "nixos/testing: restrict arguments to makeTest" as
well as some unrelated errors and warnings.
Diffstat (limited to 'nixos/tests/misc.nix')
-rw-r--r--nixos/tests/misc.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/misc.nix b/nixos/tests/misc.nix
index 0587912c9a226..02513c4726c1b 100644
--- a/nixos/tests/misc.nix
+++ b/nixos/tests/misc.nix
@@ -1,13 +1,13 @@
 # Miscellaneous small tests that don't warrant their own VM run.
 
-import ./make-test-python.nix ({ pkgs, ...} : rec {
+import ./make-test-python.nix ({ pkgs, ...} : let
+  foo = pkgs.writeText "foo" "Hello World";
+in {
   name = "misc";
   meta = with pkgs.lib.maintainers; {
     maintainers = [ eelco ];
   };
 
-  foo = pkgs.writeText "foo" "Hello World";
-
   machine =
     { lib, ... }:
     with lib;