From 6cc064ec353d8ab52fd66c6d78aa888633d79c7d Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Mon, 27 Mar 2023 10:00:47 -0300 Subject: [PATCH] hydra: fix evaluation error when platforms is missing --- hydra.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra.nix b/hydra.nix index cafeec13..12785b5a 100644 --- a/hydra.nix +++ b/hydra.nix @@ -3,7 +3,7 @@ let inherit (inputs.nixpkgs.lib) filterAttrs mapAttrs elem; notBroken = pkg: !(pkg.meta.broken or false); - hasPlatform = sys: pkg: elem sys pkg.meta.platforms; + hasPlatform = sys: pkg: elem sys (pkg.meta.platforms or []); filterValidPkgs = sys: pkgs: filterAttrs (_: pkg: hasPlatform sys pkg && notBroken pkg) pkgs; getCfg = _: cfg: cfg.config.system.build.toplevel; in