37 lines
785 B
Nix
37 lines
785 B
Nix
{ nixpkgs, declInput }: let pkgs = import nixpkgs {}; in {
|
|
jobsets = pkgs.runCommand "spec.json" {} ''
|
|
cat > $out <<EOF
|
|
{
|
|
"enabled": 1,
|
|
"hidden": false,
|
|
"type": "legacy",
|
|
"description": "Build packages maintained by me",
|
|
"nixexprinput": "src",
|
|
"nixexprpath": "default.nix",
|
|
"checkinterval": 3600,
|
|
"schedulingshares": 100,
|
|
"enableemail": false,
|
|
"emailoverride": "",
|
|
"keepnr": 3,
|
|
"inputs": {
|
|
"src": {
|
|
"type": "git",
|
|
"value": "https://git.illustris.tech/illustris/hydra-builds master",
|
|
"emailresponsible": false
|
|
},
|
|
"nixpkgs": {
|
|
"type": "git",
|
|
"value": "https://github.com/NixOS/nixpkgs master",
|
|
"emailresponsible": false
|
|
},
|
|
"maintainer": { "type": "string", "value": "illustris" }
|
|
}
|
|
}
|
|
EOF
|
|
cat <<EOF
|
|
${builtins.toXML declInput}
|
|
EOF
|
|
cat $out
|
|
'';
|
|
}
|