Add flake checks for CI/CD validation

This adds a checks attribute to enable automated validation of all
build outputs. Checks are included for all packages, devShells, and
nixosConfigurations, with appropriate prefixes (package-, devShell-,
nixos-) for clarity and organization.
This commit is contained in:
Jörg Thalheim 2025-11-03 15:45:39 +01:00
parent 348cedab1a
commit 46edb4b7e9

View file

@ -275,6 +275,16 @@
};
in {
checks =
(pkgs.lib.mapAttrs' (n: pkgs.lib.nameValuePair "package-${n}") self.packages.${system})
// (pkgs.lib.mapAttrs' (n: pkgs.lib.nameValuePair "devShell-${n}") self.devShells.${system})
// (pkgs.lib.optionalAttrs (system == "x86_64-linux") {
nixos-testvm = self.nixosConfigurations.testvm-x86_64.config.system.build.toplevel;
})
// (pkgs.lib.optionalAttrs (system == "aarch64-linux") {
nixos-testvm = self.nixosConfigurations.testvm-aarch64.config.system.build.toplevel;
});
# packages.libkrunfw = pkgs.libkrunfw;
packages.libkrunfw = pkgs.libkrunfw.overrideAttrs (old: {
version = "5.0.0";