summaryrefslogtreecommitdiff
path: root/lib/ci.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ci.nix')
-rw-r--r--lib/ci.nix21
1 files changed, 17 insertions, 4 deletions
diff --git a/lib/ci.nix b/lib/ci.nix
index 1911a11..e4be846 100644
--- a/lib/ci.nix
+++ b/lib/ci.nix
@@ -19,7 +19,8 @@ in rec {
# also needs to be editied in order to be picked up
# by some ci systems
mkCompatibleApps = apps:
- mkCompatible (mapAttrs (
+ mkCompatible
+ (mapAttrs (
_:
mapAttrs (_: v: {
program = let
@@ -61,10 +62,22 @@ in rec {
# to their activationPackage so they can be
# picked up by hydra
mkCompatibleHM = configs:
- filterAttrs (system: _: check system)
- (mapAttrs (_: mapAttrs (_: deriv: deriv.activationPackage or {})) configs);
+ mkCompatible
+ (mapAttrs (_:
+ mapAttrs (_: deriv:
+ deriv.activationPackage or {}))
+ configs);
# mkCompatible, but for packages
# meta.platforms is also checked to ensure compatibility
- mkCompatiblePkgs = mapAttrs (system: filterAttrs (_: deriv: elem system (deriv.meta.platforms or [])));
+ mkCompatiblePkgs = pkgs:
+ mkCompatible
+ (mapAttrs (
+ system:
+ filterAttrs (
+ _: deriv:
+ elem system (deriv.meta.platforms or [])
+ )
+ )
+ pkgs);
}