nixpkgs/pkgs/build-support/testers
Gabriella Gonzalez b8698cd8d6
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.
2024-03-02 06:33:14 +01:00
..
hasPkgConfigModules testers.hasPkgConfigModules: use PKG_CONFIG envvar instead of hardcoding 2024-01-31 19:50:05 +01:00
test macOS support for NixOS tests (#282401) 2024-03-02 06:33:14 +01:00
testMetaPkgConfig testers.testMetaPkgConfig: fix warning 2023-09-19 16:11:42 +02:00
default.nix macOS support for NixOS tests (#282401) 2024-03-02 06:33:14 +01:00
expect-failure.sh test.testers: fix getAllOutputNames not found 2023-01-17 20:34:36 +02:00
test-equal-derivation.nix