forked from shlevy/declarative-hydra-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
32 lines (31 loc) · 878 Bytes
/
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
{ nixpkgs, declInput }:
let
pkgs = import nixpkgs { };
in
{
jobsets = pkgs.runCommand "spec.json" { } ''
cat <<EOF
${builtins.toXML declInput}
EOF
cat > $out <<EOF
{
"master": {
"enabled": 1,
"hidden": false,
"description": "js",
"nixexprinput": "src",
"nixexprpath": "release.nix",
"checkinterval": 300,
"schedulingshares": 100,
"enableemail": false,
"emailoverride": "",
"keepnr": 3,
"inputs": {
"src": { "type": "git", "value": "https://github.com/timhae/declarative-hydra-example master", "emailresponsible": false },
"nixpkgs": { "type": "git", "value": "https://github.com/NixOS/nixpkgs nixos-24.11", "emailresponsible": false }
}
}
}
EOF
'';
}