From 4d76cd771dd3216b54fae54a9caddf71a0b57580 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 13 Jun 2019 22:07:17 +0200 Subject: ci: don't use system stockholm --- ci.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ci.nix b/ci.nix index 16c866e76..7f50cbede 100644 --- a/ci.nix +++ b/ci.nix @@ -15,7 +15,14 @@ let ci-systems = filterAttrs (_: v: v.ci) system.config.krebs.hosts; - build = host: owner: - ((import (toString ./. + "/${owner}/krops.nix") { name = host; }).test {target = "${getEnv "HOME"}/stockholm-build";}); + build = host: owner: let + target = "${getEnv "HOME"}/stockholm-build"; + krops-file = toString ./. + "/${owner}/krops.nix"; + in pkgs.writeDash "build-${owner}-${host}" '' + #do not use stockholm from system + export NIX_PATH=stockholm="${toString ./.}":"$NIX_PATH" + + ${((import krops-file { name = host; }).test { target = target; })} + ''; in mapAttrs (n: h: build n h.owner.name) ci-systems -- cgit v1.2.3