hydra-config/jobsets.nix

160 lines
4.5 KiB
Nix
Raw Normal View History

2019-09-12 00:58:00 +02:00
{ pkgs ? import <nixpkgs> {} }:
let
2019-09-12 23:01:05 +02:00
mkJobset = { description, nixexprpath, gitUrls }: {
inherit description nixexprpath;
enabled = 1;
hidden = false;
nixexprinput = "hydra-config";
checkinterval = 300;
schedulingshares = 100;
enableemail = true;
2019-09-12 23:02:31 +02:00
emailoverride = "";
2019-09-12 23:01:05 +02:00
keepnr = 16;
inputs = {
hydra-config = {
type = "git";
value = "https://gitea.c3d2.de/C3D2/hydra-config.git master 1";
emailresponsible = false;
};
nixpkgs = {
type = "git";
2019-11-11 17:13:02 +01:00
value = "https://github.com/NixOS/nixpkgs.git release-19.09 1";
2019-09-12 23:01:05 +02:00
emailresponsible = false;
};
} // (builtins.mapAttrs (_: gitUrl: {
type = "git";
value = gitUrl;
emailresponsible = false;
}) gitUrls);
};
2019-09-12 00:58:00 +02:00
jobsets = {
2019-09-13 00:10:53 +02:00
# TODO: host tests
2019-09-12 23:01:05 +02:00
spacemsg = mkJobset {
2019-09-12 00:58:00 +02:00
description = "Astro's HQ IoT stuff";
2019-09-12 01:01:31 +02:00
nixexprpath = "spacemsg.nix";
2019-09-12 23:01:05 +02:00
gitUrls = {
spacemsg = "https://github.com/astro/spacemsg.git master 1";
2019-09-12 00:58:00 +02:00
};
};
2019-09-12 03:29:00 +02:00
2019-09-12 23:01:05 +02:00
yammat = mkJobset {
2019-09-12 03:29:00 +02:00
description = "Matemat by nek0";
nixexprpath = "yammat.nix";
2019-09-12 23:01:05 +02:00
gitUrls = {
yammat = "https://github.com/nek0/yammat.git master 1";
2019-09-12 03:29:00 +02:00
};
};
2019-11-15 18:39:55 +01:00
mateamt = mkJobset {
description = "Mateamt by nek0";
nixexprpath = "mateamt.nix";
gitUrls = {
mateamt = "https://github.com/nek0/mateamt.git master 1";
};
};
2019-11-15 19:15:49 +01:00
matebeamter = mkJobset {
description = "Mateamt frontend by nek0";
nixexprpath = "matebeamter.nix";
gitUrls = {
mateamt = "https://github.com/nek0/mateamt.git master 1";
matebeamter = "https://github.com/nek0/matebeamter.git master 1";
# A few Haskell dependencies are broken in NixOS 19.09
nixpkgs = "https://github.com/NixOS/nixpkgs.git master";
2019-11-15 19:15:49 +01:00
};
};
2019-09-12 23:01:05 +02:00
tigger = mkJobset {
2019-09-12 16:20:39 +02:00
description = "XMPP MUC bot";
nixexprpath = "tigger.nix";
2019-09-12 23:01:05 +02:00
gitUrls = {
tigger = "https://github.com/astro/tigger.git master 1";
2019-09-12 16:20:39 +02:00
};
};
2019-09-13 00:12:11 +02:00
slidenado = mkJobset {
2019-09-12 17:14:55 +02:00
description = "CmS slide generator";
nixexprpath = "slidenado.nix";
2019-09-12 23:01:05 +02:00
gitUrls = {
slidenado = "https://github.com/c3d2/slidenado.git master 1";
2019-09-12 17:14:55 +02:00
};
};
2019-09-13 00:12:11 +02:00
pile = mkJobset {
2019-09-13 00:10:53 +02:00
description = "Programatically Illuminated Lighting Environment";
nixexprpath = "pile.nix";
gitUrls = {
pile = "https://github.com/astro/pile.git master 1";
};
};
2019-09-24 20:40:29 +02:00
gnunet = mkJobset {
description = "gnu:net overlay";
nixexprpath = "gnunet.nix";
gitUrls = {
gnunet = "https://git.gnunet.org/gnunet.git master";
nixpkgs-gnunet = "https://ulrich.earth/code/nixpkgs-gnunet/ master";
2019-09-24 20:40:29 +02:00
};
};
2019-10-07 00:29:22 +02:00
ticker = mkJobset {
description = "Calendar aggregation";
2019-10-07 00:32:55 +02:00
nixexprpath = "ticker.nix";
2019-10-07 00:29:22 +02:00
gitUrls = {
ticker = "https://gitea.c3d2.de/astro/ticker.git master 1";
2019-10-26 01:18:19 +02:00
mozillaOverlay = "https://github.com/mozilla/nixpkgs-mozilla.git master 1";
2019-10-07 00:29:22 +02:00
};
2019-10-07 00:32:18 +02:00
};
2019-10-10 23:37:35 +02:00
frpball = mkJobset {
description = "Functional reactive programming ball game";
nixexprpath = "frpball.nix";
gitUrls = {
frpball = "https://github.com/nek0/frpball.git master 1";
};
};
2019-10-26 01:22:48 +02:00
2019-11-03 22:38:47 +01:00
dn42-registry = mkJobset {
description = "dn42 registry checks";
nixexprpath = "dn42-registry.nix";
gitUrls = {
registry = "https://git.dn42.us/dn42/registry.git";
};
};
2019-11-06 21:44:39 +01:00
hail = mkJobset {
description = "NixOS builds for deployment through Hail";
nixexprpath = "hail.nix";
gitUrls = {
nix-config = "https://gitea.c3d2.de/C3D2/nix-config.git";
2019-11-09 16:45:47 +01:00
yggdrasil-package-nix = "https://github.com/ehmry/yggdrasil-package-nix.git";
nixpkgs = "https://github.com/NixOS/nixpkgs.git release-19.09";
nixpkgs-unstable = "https://github.com/NixOS/nixpkgs.git master";
2019-11-06 21:44:39 +01:00
};
};
2019-11-24 00:06:00 +01:00
wikidata-query-rdf = mkJobset {
description = "wikidata/query/rdf";
nixexprpath = "wikidata-query-rdf.nix";
gitUrls = {
2019-11-24 00:07:46 +01:00
wikidata-query-rdf = "https://github.com/wikimedia/wikidata-query-rdf.git";
2019-11-24 00:06:00 +01:00
};
};
wikidata-query-rdf-graviola = mkJobset {
description = "wikidata/query/rdf (gra.one fork)";
nixexprpath = "wikidata-query-rdf.nix";
gitUrls = {
2019-11-24 00:07:46 +01:00
wikidata-query-rdf = "https://git.gra.one/graviola/wikidata/wikidata-query-rdf.git";
2019-11-24 00:06:00 +01:00
};
};
2019-09-12 00:58:00 +02:00
};
jobsetsJson = pkgs.writeText "jobsets.json" (builtins.toJSON jobsets );
in
{
2019-09-12 02:39:36 +02:00
jobsets = pkgs.runCommand "jobsets.json" {} ''
cp ${jobsetsJson} $out
2019-09-12 00:58:00 +02:00
'';
}