packages/catalog: init

This commit is contained in:
Max Headroom 2024-07-05 23:59:18 +02:00
parent b8ff5d7d03
commit 986a8e8866
3 changed files with 27 additions and 0 deletions

View 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;
};
};
}

View file

@ -0,0 +1,5 @@
{
imports = [
./checks.nix
];
}

View file

@ -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; });