update url
This commit is contained in:
parent
d648aea6f7
commit
d3b115b854
2 changed files with 77 additions and 53 deletions
|
@ -7,43 +7,54 @@
|
||||||
systems = ["x86_64-linux" "aarch64-linux"];
|
systems = ["x86_64-linux" "aarch64-linux"];
|
||||||
nixpkgs_version = ["master"];
|
nixpkgs_version = ["master"];
|
||||||
mkJobsets = system: version:
|
mkJobsets = system: version:
|
||||||
(pkgs.lib.mapAttrs' (
|
builtins.listToAttrs (
|
||||||
num: info: {
|
map (info:
|
||||||
name = "${system}-${version}-pr${num}";
|
{
|
||||||
|
name = "${system}-${version}-pr${toString info.number}";
|
||||||
value = {
|
value = {
|
||||||
enabled = 1;
|
enabled = 1;
|
||||||
hidden = false;
|
hidden = false;
|
||||||
description = "PR ${num} (${system}-${version}): ${info.title}";
|
description = "PR ${toString info.number} (${system}-${version}): ${info.title}";
|
||||||
nixexprinput = "nix-packages";
|
nixexprinput = "nix-packages";
|
||||||
nixexprpath = "hydra/default.nix";
|
nixexprpath = "hydra/default.nix";
|
||||||
checkinterval =
|
checkinterval = 0;
|
||||||
if info.head.repo.owner.login == "darkkirb" && info.head.repo.name == "nix-packages" # Don’t need to manually check
|
|
||||||
then 0
|
|
||||||
else 300;
|
|
||||||
schedulingshares = 100;
|
schedulingshares = 100;
|
||||||
enableemail = false;
|
enableemail = false;
|
||||||
emailoverride = "";
|
emailoverride = "";
|
||||||
keepnr = 1;
|
keepnr = 1;
|
||||||
inputs = {
|
nix-packages = {
|
||||||
nix-packages = {
|
type = "git";
|
||||||
type = "git";
|
url = "${info.head.repo.clone_url} ${info.head.ref}";
|
||||||
value = "https://github.com/${info.head.repo.owner.login}/${info.head.repo.name}.git ${info.head.ref}";
|
emailresponsible = false;
|
||||||
emailresponsible = false;
|
};
|
||||||
};
|
nixpkgs = {
|
||||||
nixpkgs = {
|
type = "git";
|
||||||
type = "git";
|
value = "https://github.com/NixOS/nixpkgs.git ${version}";
|
||||||
value = "https://github.com/NixOS/nixpkgs.git ${version}";
|
emailresponsible = false;
|
||||||
emailresponsible = false;
|
};
|
||||||
};
|
system = {
|
||||||
system = {
|
type = "string";
|
||||||
type = "string";
|
value = system;
|
||||||
value = system;
|
};
|
||||||
};
|
gitea_status_repo = {
|
||||||
|
type = "string";
|
||||||
|
value = "nix-packages";
|
||||||
|
emailresponsible = false;
|
||||||
|
};
|
||||||
|
gitea_repo_owner = {
|
||||||
|
type = "string";
|
||||||
|
value = "${info.head.repo.owner.login}";
|
||||||
|
emailresponsible = false;
|
||||||
|
};
|
||||||
|
gitea_repo_name = {
|
||||||
|
type = "string";
|
||||||
|
value = "${info.head.repo.name}";
|
||||||
|
emailresponsible = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
)
|
prs)
|
||||||
prs)
|
)
|
||||||
// {
|
// {
|
||||||
"${system}-${version}" = {
|
"${system}-${version}" = {
|
||||||
enabled = 1;
|
enabled = 1;
|
||||||
|
@ -59,7 +70,7 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nix-packages = {
|
nix-packages = {
|
||||||
type = "git";
|
type = "git";
|
||||||
value = "https://github.com/DarkKirb/nix-packages.git main";
|
value = "https://git.chir.rs/darkkirb/nix-packages main";
|
||||||
emailresponsible = false;
|
emailresponsible = false;
|
||||||
};
|
};
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
@ -71,33 +82,26 @@
|
||||||
type = "string";
|
type = "string";
|
||||||
value = system;
|
value = system;
|
||||||
};
|
};
|
||||||
};
|
gitea_status_repo = {
|
||||||
};
|
type = "string";
|
||||||
};
|
value = "nix-packages";
|
||||||
|
emailresponsible = false;
|
||||||
concatAttrs = pkgs.lib.foldr (a: b: a // b) {};
|
};
|
||||||
|
gitea_repo_owner = {
|
||||||
jobsets =
|
type = "string";
|
||||||
(concatAttrs (pkgs.lib.concatMap (system: map (version: mkJobsets system version) nixpkgs_version) systems))
|
value = "darkkirb";
|
||||||
// {
|
emailresponsible = false;
|
||||||
nix-packages-flake = {
|
};
|
||||||
enabled = 1;
|
gitea_repo_name = {
|
||||||
hidden = false;
|
type = "string";
|
||||||
description = "nix-packages flake";
|
value = "nixos-config";
|
||||||
nixexprinput = "nix-packages";
|
|
||||||
nixexprpath = "hydra/parse-flake.nix";
|
|
||||||
checkinterval = 0;
|
|
||||||
schedulingshares = 100;
|
|
||||||
enableemail = false;
|
|
||||||
emailoverride = "";
|
|
||||||
keepnr = 1;
|
|
||||||
inputs = {
|
|
||||||
flake = {
|
|
||||||
type = "git";
|
|
||||||
value = "https://github.com/DarkKirb/nix-packages.git main";
|
|
||||||
emailresponsible = false;
|
emailresponsible = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
concatAttrs = pkgs.lib.foldr (a: b: a // b) {};
|
||||||
|
|
||||||
|
jobsets =
|
||||||
|
concatAttrs (pkgs.lib.concatMap (system: map (version: mkJobsets system version) nixpkgs_version) systems);
|
||||||
in {jobsets = pkgs.writeText "jobsets.json" (builtins.toJSON jobsets);}
|
in {jobsets = pkgs.writeText "jobsets.json" (builtins.toJSON jobsets);}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nix-packages": {
|
"nix-packages": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"value": "https://github.com/DarkKirb/nix-packages.git main",
|
"value": "https://git.chir.rs/dark-kirb/nix-packages.git main",
|
||||||
"emailresponsible": false
|
"emailresponsible": false
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
|
@ -21,8 +21,28 @@
|
||||||
"emailresponsible": false
|
"emailresponsible": false
|
||||||
},
|
},
|
||||||
"prsJSON": {
|
"prsJSON": {
|
||||||
"type": "githubpulls",
|
"type": "path",
|
||||||
"value": "DarkKirb nix-packages",
|
"value": "https://git.chir.rs/api/v1/repos/darkkirb/nix-packages/pulls?state=open&sort=recentupdate",
|
||||||
|
"emailresponsible": false
|
||||||
|
},
|
||||||
|
"gitea_status_repo": {
|
||||||
|
"type": "string",
|
||||||
|
"value": "nix-packages",
|
||||||
|
"emailresponsible": false
|
||||||
|
},
|
||||||
|
"gitea_http_url": {
|
||||||
|
"type": "string",
|
||||||
|
"value": "https://git.chir.rs/",
|
||||||
|
"emailresponsible": false
|
||||||
|
},
|
||||||
|
"gitea_repo_owner": {
|
||||||
|
"type": "string",
|
||||||
|
"value": "darkkirb",
|
||||||
|
"emailresponsible": false
|
||||||
|
},
|
||||||
|
"gitea_repo_name": {
|
||||||
|
"type": "string",
|
||||||
|
"value": "nix-packages",
|
||||||
"emailresponsible": false
|
"emailresponsible": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue