summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ci.nix11
1 files 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