packages/catalog: init
This commit is contained in:
parent
b8ff5d7d03
commit
986a8e8866
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 = [
|
||||
./projects.nix
|
||||
./patched-inputs.nix
|
||||
./catalog
|
||||
];
|
||||
perSystem = { pkgs, self', system, ... }: let
|
||||
patched-derivations = import ./patched-derivations.nix (pkgs // { flakePackages = self'.packages; });
|
||||
|
|
Loading…
Reference in a new issue