fix(flake): export hydraJobs and use them in ci
This commit is contained in:
parent
d814d48b9c
commit
e971b6f07a
2 changed files with 13 additions and 1 deletions
|
@ -33,4 +33,4 @@ jobs:
|
|||
--systems 'x86_64-linux' \
|
||||
--option accept-flake-config true \
|
||||
--option allow-import-from-derivation false \
|
||||
--flake '.#packages'
|
||||
--flake '.#hydraJobs'
|
||||
|
|
12
flake.nix
12
flake.nix
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue