mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
fix(tests): error: attribute 'rk3588' missing
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
outputs,
|
||||
}: let
|
||||
hostsNames = builtins.attrNames outputs.nixosConfigurations;
|
||||
expected = lib.genAttrs hostsNames (_: "aarch64-linux");
|
||||
expected = lib.genAttrs hostsNames (_: true);
|
||||
in
|
||||
expected
|
||||
|
||||
@@ -5,5 +5,7 @@
|
||||
lib.genAttrs
|
||||
(builtins.attrNames outputs.nixosConfigurations)
|
||||
(
|
||||
name: outputs.nixosConfigurations.${name}.config.boot.kernelPackages.kernel.system
|
||||
# test only if kernelPackages is set, to avoid build the kernel.
|
||||
# name: outputs.nixosConfigurations.${name}.config.boot.kernelPackages.kernel.system
|
||||
name: outputs.nixosConfigurations.${name}.config.boot.kernelPackages != null
|
||||
)
|
||||
|
||||
@@ -53,9 +53,6 @@ in {
|
||||
# Add attribute sets into outputs, for debugging
|
||||
debugAttrs = {inherit nixosSystems darwinSystems allSystems allSystemNames;};
|
||||
|
||||
# Eval Tests for all NixOS systems.
|
||||
evalTests = lib.lists.all (it: it.evalTests == {}) allSystemValues;
|
||||
|
||||
# NixOS Hosts
|
||||
nixosConfigurations =
|
||||
lib.attrsets.mergeAttrsList (map (it: it.nixosConfigurations or {}) nixosSystemValues);
|
||||
@@ -90,8 +87,14 @@ in {
|
||||
system: allSystems.${system}.packages or {}
|
||||
);
|
||||
|
||||
# Eval Tests for all NixOS & darwin systems.
|
||||
evalTests = lib.lists.all (it: it.evalTests == {}) allSystemValues;
|
||||
|
||||
checks = forAllSystems (
|
||||
system: {
|
||||
# eval-tests per system
|
||||
eval-tests = allSystems.${system}.evalTests == {};
|
||||
|
||||
pre-commit-check = pre-commit-hooks.lib.${system}.run {
|
||||
src = mylib.relativeToRoot ".";
|
||||
hooks = {
|
||||
|
||||
Reference in New Issue
Block a user