hydra/artiq: add zc706

This commit is contained in:
Astro 2019-09-26 17:54:59 +02:00
parent 987d1d93d3
commit 99fd8085ed
2 changed files with 38 additions and 0 deletions

View File

@ -91,6 +91,24 @@
"urukulSrc": { "type": "git", "value": "git://github.com/quartiq/urukul", "emailresponsible": false }, "urukulSrc": { "type": "git", "value": "git://github.com/quartiq/urukul", "emailresponsible": false },
"mirnySrc": { "type": "git", "value": "git://github.com/quartiq/mirny", "emailresponsible": false } "mirnySrc": { "type": "git", "value": "git://github.com/quartiq/mirny", "emailresponsible": false }
} }
},
"zc706": {
"enabled": 1,
"hidden": false,
"description": "Rust on ZYNQ",
"nixexprinput": "nixScripts",
"nixexprpath": "zc706.nix",
"checkinterval": 300,
"schedulingshares": 1,
"enableemail": false,
"emailoverride": "",
"keepnr": 10,
"inputs": {
"nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs-channels nixos-19.09", "emailresponsible": false },
"nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "emailresponsible": false },
"zc706": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/zc706.git", "emailresponsible": false },
"mozillaOverlay": { "type": "git", "value": "git://github.com/mozilla/nixpkgs-mozilla", "emailresponsible": false }
}
} }
} }
EOF EOF

20
zc706.nix Normal file
View File

@ -0,0 +1,20 @@
{ pkgs ? import <nixpkgs> {},
zc706-nix ? import <zc706> { mozillaOverlay = import <mozillaOverlay>; },
}:
let
addBuildProducts = drv: drv.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
builtins.mapAttrs (name: drv:
pkgs.lib.hydraJob (
addBuildProducts drv
)
) zc706-nix.zc706