about summary refs log tree commit diff
path: root/pkgs/top-level/release-attrpaths-superset.nix
diff options
context:
space:
mode:
authorGabriella Gonzalez <GenuineGabriella@gmail.com>2024-03-01 21:33:14 -0800
committerGitHub <noreply@github.com>2024-03-02 06:33:14 +0100
commitb8698cd8d62c42cf3e2b3a95224c57173b73e494 (patch)
tree29bb4f72df703eb67c4a4adb1fa1cc7963096531 /pkgs/top-level/release-attrpaths-superset.nix
parent458b097d81f90275b3fdf03796f0563844926708 (diff)
macOS support for NixOS tests (#282401)
Closes #193336
Closes #261694
Related to #108984

The goal here was to get the following flake to build and run on
`aarch64-darwin`:

```nix
{ inputs.nixpkgs.url = <this branch>;

  outputs = { nixpkgs, ... }: {
    checks.aarch64-darwin.default =
      nixpkgs.legacyPackages.aarch64-darwin.nixosTest {
        name = "test";

        nodes.machine = { };

        testScript = "";
      };
  };
}
```

… and after this change it does.  There's no longer a need for the
user to set `nodes.*.nixpkgs.pkgs` or
`nodes.*.virtualisation.host.pkgs` as the correct values are inferred
from the host system.
Diffstat (limited to 'pkgs/top-level/release-attrpaths-superset.nix')
-rw-r--r--pkgs/top-level/release-attrpaths-superset.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/top-level/release-attrpaths-superset.nix b/pkgs/top-level/release-attrpaths-superset.nix
index 55cce6101d71a..cd48453fa0eea 100644
--- a/pkgs/top-level/release-attrpaths-superset.nix
+++ b/pkgs/top-level/release-attrpaths-superset.nix
@@ -53,6 +53,7 @@ let
     pkgsStatic = true;
     pkgsCross = true;
     pkgsi686Linux = true;
+    pkgsLinux = true;
     pkgsExtraHardening = true;
   };