change the name of the pr jobname
This commit is contained in:
parent
e8d72cfaea
commit
7dc636d47a
1 changed files with 14 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue