From 99fd8085edc7d4c6bfe9120fcd1624a072c0bec0 Mon Sep 17 00:00:00 2001 From: Stephan Maka Date: Thu, 26 Sep 2019 17:54:59 +0200 Subject: [PATCH] hydra/artiq: add zc706 --- hydra/artiq.nix | 18 ++++++++++++++++++ zc706.nix | 20 ++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 zc706.nix diff --git a/hydra/artiq.nix b/hydra/artiq.nix index af4a605..4a3017f 100644 --- a/hydra/artiq.nix +++ b/hydra/artiq.nix @@ -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 diff --git a/zc706.nix b/zc706.nix new file mode 100644 index 0000000..cdb81dd --- /dev/null +++ b/zc706.nix @@ -0,0 +1,20 @@ +{ pkgs ? import {}, + zc706-nix ? import { mozillaOverlay = import ; }, +}: +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