diff options
-rw-r--r-- | ci.nix | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |