export packages as checks
This commit is contained in:
parent
1717912538
commit
3b7b5998f1
1 changed files with 23 additions and 17 deletions
|
@ -51,7 +51,11 @@
|
||||||
# TODO: also add a test here once we have https://github.com/NixOS/nixpkgs/pull/228346 merged
|
# TODO: also add a test here once we have https://github.com/NixOS/nixpkgs/pull/228346 merged
|
||||||
netboot-installer = ./nix/netboot-installer/module.nix;
|
netboot-installer = ./nix/netboot-installer/module.nix;
|
||||||
};
|
};
|
||||||
checks.x86_64-linux =
|
checks =
|
||||||
|
let
|
||||||
|
# re-export the packages as checks
|
||||||
|
packages = forAllSystems (system: nixos-unstable.lib.mapAttrs' (n: nixos-unstable.lib.nameValuePair "package-${n}") self.packages.${system});
|
||||||
|
checks =
|
||||||
let
|
let
|
||||||
pkgs = nixos-unstable.legacyPackages.x86_64-linux;
|
pkgs = nixos-unstable.legacyPackages.x86_64-linux;
|
||||||
in
|
in
|
||||||
|
@ -70,5 +74,7 @@
|
||||||
kexecTarball = self.packages.x86_64-linux.kexec-installer-nixos-2311-noninteractive;
|
kexecTarball = self.packages.x86_64-linux.kexec-installer-nixos-2311-noninteractive;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
in
|
||||||
|
nixos-unstable.lib.recursiveUpdate packages { x86_64-linux = checks; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue