-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjobsets.nix
29 lines (29 loc) · 1.1 KB
/
jobsets.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
{ nixpkgs, declInput }: let pkgs = import nixpkgs {}; in {
jobsets = pkgs.runCommand "spec.json" {} ''
cat <<EOF
${builtins.toXML declInput}
EOF
cat > $out <<EOF
{
"blog": {
"enabled": 1,
"hidden": false,
"description": "blog",
"nixexprinput": "blog",
"nixexprpath": "release.nix",
"checkinterval": 300,
"schedulingshares": 1,
"enableemail": false,
"emailoverride": "",
"keepnr": 5,
"inputs": {
"nixpkgs": { "type": "git", "value": "https://github.com/NixOS/nixpkgs.git release-19.09", "emailresponsible": false },
"blog": { "type": "git", "value": "https://github.com/qfpl/blog", "emailresponsible": false },
"reflex-tutorial": { "type": "git", "value": "https://github.com/qfpl/reflex-tutorial", "emailresponsible": false },
"growing-a-datepicker": { "type": "git", "value": "https://github.com/qfpl/growing-a-datepicker", "emailresponsible": false }
}
}
}
EOF
'';
}