summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-06-13 22:07:17 +0200
committerlassulus <lassulus@lassul.us>2019-06-13 22:28:51 +0200
commit4d76cd771dd3216b54fae54a9caddf71a0b57580 (patch)
treed7aa89bbf53ac76bc55e5d6ed5ffb3b6ddbf626d
parent70a58ef2e310521029de794caba6c8351ac99e86 (diff)
ci: don't use system stockholm
-rw-r--r--ci.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/ci.nix b/ci.nix
index 16c866e7..7f50cbed 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