Browse Source

add zc706

master
Stephan Maka 6 months ago
parent
commit
e57c14b555
3 changed files with 63 additions and 0 deletions
  1. 16
    0
      hydra/zc706.json
  2. 28
    0
      hydra/zc706.nix
  3. 19
    0
      zc706.nix

+ 16
- 0
hydra/zc706.json View File

@@ -0,0 +1,16 @@
{
"enabled": 1,
"hidden": true,
"description": "js",
"nixexprinput": "nixScripts",
"nixexprpath": "hydra/zc706.nix",
"checkinterval": 300,
"schedulingshares": 10,
"enableemail": false,
"emailoverride": "",
"keepnr": 10,
"inputs": {
"nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs-channels nixos-19.03", "emailresponsible": false },
"nixScripts": { "type": "git", "value": "https://git.m-labs.hk/astro/nix-scripts.git", "emailresponsible": false }
}
}

+ 28
- 0
hydra/zc706.nix View File

@@ -0,0 +1,28 @@
{ pkgs ? import <nixpkgs> {}}:
{
jobsets = pkgs.runCommand "spec.json" {}
''
cat > $out << EOF
{
"zc706": {
"enabled": 1,
"hidden": false,
"description": "ZYNQ zc706",
"nixexprinput": "nixScripts",
"nixexprpath": "zc706.nix",
"checkinterval": 300,
"schedulingshares": 10,
"enableemail": false,
"emailoverride": "",
"keepnr": 10,
"inputs": {
"nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs-channels nixos-19.09", "emailresponsible": false },
"zc706": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/zc706.git", "emailresponsible": false },
"mozillaOverlay": { "type": "git", "value": "https://github.com/mozilla/nixpkgs-mozilla.git", "emailresponsible": false },
"nixScripts": { "type": "git", "value": "https://git.m-labs.hk/astro/nix-scripts.git", "emailresponsible": false }
}
}
}
EOF
'';
}

+ 19
- 0
zc706.nix View File

@@ -0,0 +1,19 @@
{ pkgs ? import <nixpkgs> {},
zc706-nix ? import <zc706> { mozillaOverlay = import <mozillaOverlay>; },
}:
with pkgs;
let
zc706 = zc706-nix.zc706
.overrideAttrs (oldAttrs: {
installPhase = ''
${oldAttrs.installPhase}

mkdir -p $out/nix-support
for f in $out/*.elf ; do
echo file binary-dist $f >> $out/nix-support/hydra-build-products
done
'';
});
in {
zc706 = lib.hydraJob zc706;
}

Loading…
Cancel
Save