mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 10:04:09 -05:00
rework flake, move hydra stuff
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{ inputs, outputs }:
|
||||
let
|
||||
inherit (inputs.nixpkgs.lib) filterAttrs mapAttrs elem;
|
||||
|
||||
notBroken = pkg: !(pkg.meta.broken or false);
|
||||
hasPlatform = sys: pkg: elem sys pkg.meta.platforms;
|
||||
filterValidPkgs = sys: pkgs: filterAttrs (_: pkg: hasPlatform sys pkg && notBroken pkg);
|
||||
getCfg = _: cfg: cfg.config.system.build.build.toplevel;
|
||||
in {
|
||||
packages = mapAttrs filterValidPkgs outputs.packages;
|
||||
nixos = mapAttrs getCfg outputs.nixosConfigurations;
|
||||
}
|
||||
Reference in New Issue
Block a user