blob: 22d85b12a63ddbeb2a589046bc26369d69e44806 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{ system ? builtins.currentSystem, nixpkgs ? import ../nixpkgs-path.nix }:
with import "${nixpkgs}/lib";
{
nixos = let
upstreamTests = (import "${nixpkgs}/nixos/release.nix" {
inherit nixpkgs;
}).tests;
isTestOrSystems = attr: attr ? test || attr ? ${system};
cond = attr: !isTestOrSystems attr;
reduce = attr: if attr ? test then attr else attr.${system};
in mapAttrsRecursiveCond cond (path: reduce) upstreamTests;
vuizvui = import ../tests {
inherit system;
};
}
|