hydra/artiq: add zc706
This commit is contained in:
parent
987d1d93d3
commit
99fd8085ed
@ -91,6 +91,24 @@
|
||||
"urukulSrc": { "type": "git", "value": "git://github.com/quartiq/urukul", "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
|
||||
|
20
zc706.nix
Normal file
20
zc706.nix
Normal 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
|
Loading…
Reference in New Issue
Block a user