fix(flake): export hydraJobs and use them in ci

This commit is contained in:
uku 2024-12-30 11:46:38 +01:00
parent d814d48b9c
commit e971b6f07a
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
2 changed files with 13 additions and 1 deletions

View file

@ -33,4 +33,4 @@ jobs:
--systems 'x86_64-linux' \
--option accept-flake-config true \
--option allow-import-from-derivation false \
--flake '.#packages'
--flake '.#hydraJobs'

View file

@ -42,5 +42,17 @@
};
formatter = forEachSystem (system: (pkgsFor system).nixfmt-rfc-style);
hydraJobs =
let
ciSystem = "x86_64-linux";
isBuildable =
name: drv:
(!drv ? meta.hydraPlatforms)
|| lib.any (lib.meta.platformMatch { system = ciSystem; }) drv.meta.hydraPlatforms;
packages = self.packages.${ciSystem};
in
lib.filterAttrs isBuildable packages;
};
}