use direct JSON for project declaration

This commit is contained in:
Sebastien Bourdeauducq 2019-02-17 11:25:10 +08:00
parent f1f47cc5e1
commit 9b489c0eed
2 changed files with 19 additions and 27 deletions

19
hydra-project.json Normal file
View File

@ -0,0 +1,19 @@
{
"main": {
"enabled": 1,
"hidden": false,
"description": "js",
"nixexprinput": "nixScripts",
"nixexprpath": "main.nix",
"checkinterval": 300,
"schedulingshares": 10,
"enableemail": false,
"emailoverride": "",
"keepnr": 10,
"inputs": {
"nixScripts": { "type": "git", "value": "git://github.com/m-labs/nix-scripts.git", "emailresponsible": false },
"nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs-channels nixos-18.09", "emailresponsible": false },
"artiqSrc": { "type": "git", "value": "git://github.com/m-labs/artiq.git master 1", "emailresponsible": false }
}
}
}

View File

@ -1,27 +0,0 @@
{ pkgs ? import <nixpkgs> {}}:
{
jobsets = pkgs.runCommand "spec.json" {}
''
cat > $out << EOF
{
"main": {
"enabled": 1,
"hidden": false,
"description": "js",
"nixexprinput": "nixScripts",
"nixexprpath": "main.nix",
"checkinterval": 300,
"schedulingshares": 10,
"enableemail": false,
"emailoverride": "",
"keepnr": 10,
"inputs": {
"nixScripts": { "type": "git", "value": "git://github.com/m-labs/nix-scripts.git", "emailresponsible": false },
"nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs-channels nixos-18.09", "emailresponsible": false },
"artiqSrc": { "type": "git", "value": "git://github.com/m-labs/artiq.git master 1", "emailresponsible": false }
}
}
}
EOF
'';
}