change the name of the pr jobname

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-25 13:15:18 +01:00
parent e8d72cfaea
commit 7dc636d47a
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -9,6 +9,11 @@
let let
inherit (builtins) attrNames listToAttrs;
mapAttrs' = f: set:
listToAttrs (map (attr: f attr set.${attr}) (attrNames set));
flake_compat = src: flake_compat = src:
let let
@ -203,13 +208,15 @@ let
prs = builtins.fromJSON (builtins.readFile <prs>); prs = builtins.fromJSON (builtins.readFile <prs>);
srcs = builtins.mapAttrs srcs = builtins.mapAttrs'
(n: value: (n: value: {
builtins.fetchgit { name = "pr${n}";
url = "https://github.com/${value.base.repo.owner}/${value.base.repo.name}"; value = builtins.fetchgit
ref = "pulls/${n}/head"; {
} url = "https://github.com/${value.base.repo.owner}/${value.base.repo.name}";
) ref = "pulls/${n}/head";
};
})
prs; prs;
in in
builtins.mapAttrs (_: flake_compat) srcs builtins.mapAttrs (_: flake_compat) srcs