From 9b489c0eed541ff080a020e871d6cee17ae350e6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 17 Feb 2019 11:25:10 +0800 Subject: [PATCH] use direct JSON for project declaration --- hydra-project.json | 19 +++++++++++++++++++ hydra-project.nix | 27 --------------------------- 2 files changed, 19 insertions(+), 27 deletions(-) create mode 100644 hydra-project.json delete mode 100644 hydra-project.nix diff --git a/hydra-project.json b/hydra-project.json new file mode 100644 index 0000000..563c0c6 --- /dev/null +++ b/hydra-project.json @@ -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 } + } + } +} diff --git a/hydra-project.nix b/hydra-project.nix deleted file mode 100644 index ef8634b..0000000 --- a/hydra-project.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ pkgs ? import {}}: -{ - 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 - ''; -}