2
0
Fork 0
genodepkgs/hydra/solo5-jobs.nix

45 lines
889 B
Nix
Raw Normal View History

2019-10-21 13:06:35 +02:00
# SPDX-FileCopyrightText: Emery Hemingway
#
# SPDX-License-Identifier: LicenseRef-Hippocratic-1.1
{ releaseInputs, pullRequests }:
2019-10-21 13:06:35 +02:00
with builtins;
let
pullRequests' = fromJSON (readFile pullRequests);
prToJob = pr: {
name = "solo5-${toString pr.number}";
value = {
description = pr.title;
nixexprpath = "hydra/solo5.nix";
enabled = 1;
hidden = false;
nixexprinput = "genodepkgs";
checkinterval = 300;
schedulingshares = 100;
enableemail = false;
emailoverride = "";
keepnr = 8;
inputs = releaseInputs // {
prSrc = {
type = "git";
value = "https://github.com/Solo5/solo5.git pull/${
toString pr.number
}/head";
emailresponsible = false;
2019-10-21 13:06:35 +02:00
};
};
2019-10-21 13:06:35 +02:00
};
};
2019-10-21 13:06:35 +02:00
jobs = map prToJob (attrValues pullRequests');
in listToAttrs jobs