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:
parent
348cedab1a
commit
46edb4b7e9
1 changed files with 10 additions and 0 deletions
10
flake.nix
10
flake.nix
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue