zynq: build experiments again
This commit is contained in:
parent
dc1e0cf3d7
commit
9695aaf74f
|
@ -108,6 +108,7 @@
|
||||||
"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 },
|
||||||
"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-fast": { "type": "sysbuild", "value": "artiq:fast-beta:generated-nix", "emailresponsible": false },
|
||||||
|
"zc706": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/zc706.git", "emailresponsible": false },
|
||||||
"artiq-zynq": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/artiq-zynq.git", "emailresponsible": false }
|
"artiq-zynq": { "type": "git", "value": "https://git.m-labs.hk/M-Labs/artiq-zynq.git", "emailresponsible": false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
20
zynq.nix
20
zynq.nix
|
@ -1,5 +1,23 @@
|
||||||
let
|
let
|
||||||
pkgs = import <nixpkgs> {};
|
pkgs = import <nixpkgs> {};
|
||||||
|
zc706 = import <zc706> { mozillaOverlay = import <mozillaOverlay>; };
|
||||||
artiq-zynq = import <artiq-zynq> { mozillaOverlay = import <mozillaOverlay>; };
|
artiq-zynq = import <artiq-zynq> { mozillaOverlay = import <mozillaOverlay>; };
|
||||||
|
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
|
in
|
||||||
builtins.mapAttrs (key: value: pkgs.lib.hydraJob value) artiq-zynq
|
(
|
||||||
|
builtins.mapAttrs (name: drv:
|
||||||
|
pkgs.lib.hydraJob (
|
||||||
|
addBuildProducts drv
|
||||||
|
)
|
||||||
|
) zc706.zc706
|
||||||
|
) // (
|
||||||
|
builtins.mapAttrs (key: value: pkgs.lib.hydraJob value) artiq-zynq
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue