summaryrefslogtreecommitdiffstats
path: root/spec.nix
blob: 35c903c88faa26e2f0133efb4bf68aeff1c7ff11 (plain)
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
33
{ nixpkgs ? <nixpkgs>, declInput }:

let
  pkgs = import nixpkgs {
    config = {};
  };
in {
  jobsets = pkgs.runCommand "spec.json" {} ''
    cat << EOF
    ${builtins.toXML declInput}
    EOF
    cat > $out <<EOF
    {
      "master": {
        "enabled": 1,
        "hidden": false,
        "description": "set_eq Master branch",
        "nixexprinput": "src",
        "nixexprpath": "default.nix",
        "checkinterval": 60,
        "schedulingshares": 1,
        "enableemail": false,
        "emailoverride": "",
        "keepnr": 10,
        "inputs": {
            "src": { "type": "git", "value": "https://git.huh.gdn/set_eq/ master", "emailresponsible": true },
            "nixpkgs": { "type": "git", "value": "https://github.com/nixos/nixpkgs-channels nixos-18.03", "emailresponsible": false }
        }
      }
    }
    EOF
  '';
}