2019-10-21 13:06:35 +02:00
|
|
|
# SPDX-FileCopyrightText: Emery Hemingway
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LicenseRef-Hippocratic-1.1
|
|
|
|
|
2019-10-22 17:58:45 +02:00
|
|
|
{ releaseInputs, pullRequests }:
|
2019-10-21 13:06:35 +02:00
|
|
|
|
|
|
|
with builtins;
|
|
|
|
|
|
|
|
let
|
|
|
|
pullRequests' = fromJSON (readFile pullRequests);
|
|
|
|
|
2019-10-22 17:58:45 +02:00
|
|
|
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-22 17:58:45 +02:00
|
|
|
|
2019-10-21 13:06:35 +02:00
|
|
|
};
|
2019-10-22 17:58:45 +02:00
|
|
|
};
|
2019-10-21 13:06:35 +02:00
|
|
|
|
|
|
|
jobs = map prToJob (attrValues pullRequests');
|
|
|
|
|
|
|
|
in listToAttrs jobs
|