Void CLI #99
3 changed files with 27 additions and 0 deletions
21
packages/catalog/checks.nix
Normal file
21
packages/catalog/checks.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
perSystem = { config, ... }: {
|
||||||
|
catalog.depot = {
|
||||||
|
checks = lib.mapAttrs (name: check: {
|
||||||
|
description = "NixOS Test: ${name}";
|
||||||
|
actions = {
|
||||||
|
build = {
|
||||||
|
description = "Build this check.";
|
||||||
|
command = "nix build -L --no-link '${builtins.unsafeDiscardStringContext check.drvPath}^*'";
|
||||||
|
};
|
||||||
|
runInteractive = {
|
||||||
|
description = "Run interactive driver.";
|
||||||
|
command = lib.getExe check.driverInteractive;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}) config.checks;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
5
packages/catalog/default.nix
Normal file
5
packages/catalog/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./checks.nix
|
||||||
|
];
|
||||||
|
}
|
|
@ -8,6 +8,7 @@ in {
|
||||||
imports = [
|
imports = [
|
||||||
./projects.nix
|
./projects.nix
|
||||||
./patched-inputs.nix
|
./patched-inputs.nix
|
||||||
|
./catalog
|
||||||
];
|
];
|
||||||
perSystem = { pkgs, self', system, ... }: let
|
perSystem = { pkgs, self', system, ... }: let
|
||||||
patched-derivations = import ./patched-derivations.nix (pkgs // { flakePackages = self'.packages; });
|
patched-derivations = import ./patched-derivations.nix (pkgs // { flakePackages = self'.packages; });
|
||||||
|
|
Loading…
Reference in a new issue