zc706: build artiq-zynq
This commit is contained in:
parent
556fda274d
commit
06757b311a
|
@ -95,7 +95,7 @@
|
||||||
"zc706": {
|
"zc706": {
|
||||||
"enabled": 1,
|
"enabled": 1,
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"description": "Rust on ZYNQ",
|
"description": "ARTIQ on the Zynq-based ZC706 board",
|
||||||
"nixexprinput": "nixScripts",
|
"nixexprinput": "nixScripts",
|
||||||
"nixexprpath": "zc706.nix",
|
"nixexprpath": "zc706.nix",
|
||||||
"checkinterval": 300,
|
"checkinterval": 300,
|
||||||
|
@ -106,8 +106,9 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs-channels nixos-20.03", "emailresponsible": false },
|
"nixpkgs": { "type": "git", "value": "git://github.com/NixOS/nixpkgs-channels nixos-20.03", "emailresponsible": false },
|
||||||
"nixScripts": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/nix-scripts.git", "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 },
|
||||||
"mozillaOverlay": { "type": "git", "value": "git://github.com/mozilla/nixpkgs-mozilla", "emailresponsible": false }
|
"artiq-fast": { "type": "sysbuild", "value": "artiq:fast-beta:generated-nix", "emailresponsible": false },
|
||||||
|
"artiq-zynq": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/artiq-zynq.git", "emailresponsible": false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
23
zc706.nix
23
zc706.nix
|
@ -1,20 +1,5 @@
|
||||||
{ pkgs ? import <nixpkgs> {},
|
{
|
||||||
zc706-nix ? import <zc706> { mozillaOverlay = import <mozillaOverlay>; },
|
pkgs ? import <nixpkgs> {},
|
||||||
|
artiq-zynq ? import <artiq-zynq> { mozillaOverlay = import <mozillaOverlay>; },
|
||||||
}:
|
}:
|
||||||
let
|
builtins.mapAttrs pkgs.lib.hydraJob artiq-zynq
|
||||||
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