hydra.nix 891 Bytes
Newer Older
Valentin Reis's avatar
Valentin Reis committed
1
{ hostNixpkgs, declInput }: let pkgs = import hostNixpkgs {}; in {
2 3 4 5 6 7 8 9 10 11 12 13 14 15
  jobsets = pkgs.runCommand "spec.json" {} ''
    cat <<EOF
    ${builtins.toXML declInput}
    EOF
    cat > $out <<EOF
    {
        "master": {
            "enabled": 1,
            "hidden": false,
            "description": "js",
            "nixexprinput": "argopkgs",
            "nixexprpath": "release.nix",
            "checkinterval": 300,
            "schedulingshares": 100,
16
            "enableemail": false,
17 18 19 20
            "emailoverride": "fre@freux.fr",
            "keepnr": 3,
            "inputs": {
              "argopkgs": { "type": "git", "value": "https://xgitlab.cels.anl.gov/argo/argopkgs.git", "emailresponsible": false },
21
              "nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs.git release-18.03", "emailresponsible": false }
22 23 24 25 26 27
            }
        }
    }
    EOF
  '';
}