-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.nix
42 lines (39 loc) · 1.24 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ projectName, ... }: let
defaultJobset = {
enabled = 1;
type = 0;
nixexprinput = "robotnix-hydra";
nixexprpath = "release.nix";
hidden = false;
description = "";
checkinterval = 3600;
schedulingshares = 10;
enableemail = false;
emailoverride = "";
keepnr = 2;
inputs = {};
enable_dynamic_run_command = true;
};
mkInput = { type, value, emailresponsible ? false }: { inherit type value emailresponsible; };
jobsets = {
devices = {
inputs = {
robotnix-hydra = mkInput { type = "git"; value = "https://github.com/ajs124/robotnix-hydra main"; };
robotnix = mkInput { type = "git"; value = "https://github.com/danielfullmer/robotnix"; };
robotnix-adevtool = mkInput { type = "git"; value = "https://github.com/yu-re-ka/robotnix feature/adevtool"; };
nixpkgs = mkInput { type = "git"; value = "https://github.com/nixos/nixpkgs nixos-unstable"; };
};
};
};
in {
jobsets = derivation {
name = "robotnix-spec.json";
system = builtins.currentSystem;
builder = "/bin/sh";
args = [
(builtins.toFile "spec-builder.sh" ''
echo '${builtins.toJSON (builtins.mapAttrs (_: v: defaultJobset // v) jobsets)}' > "$out"
'')
];
};
}