From b24528587c0bf8b6e5d8d67aa487a77da18c8a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 8 Apr 2023 12:40:09 +0100 Subject: [PATCH] fix --- hydra/jobsets.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/hydra/jobsets.nix b/hydra/jobsets.nix index 3d34b90..67edb79 100644 --- a/hydra/jobsets.nix +++ b/hydra/jobsets.nix @@ -7,13 +7,13 @@ systems = ["x86_64-linux" "aarch64-linux"]; nixpkgs_version = ["master"]; mkJobsets = system: version: - builtins.listToAttrs ( - map (info: - { + (builtins.listToAttrs ( + map ( + info: { name = "${system}-${version}-pr${toString info.number}"; value = { - enabled = 1; - hidden = false; + enabled = info.state == "open"; + hidden = info.state != "open"; description = "PR ${toString info.number} (${system}-${version}): ${info.title}"; nixexprinput = "nix-packages"; nixexprpath = "hydra/default.nix"; @@ -53,8 +53,9 @@ }; }; } - prs) - ) + ) + prs + )) // { "${system}-${version}" = { enabled = 1;