diff options
author | lassulus <lassulus@lassul.us> | 2019-06-13 22:07:17 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2019-06-13 22:28:51 +0200 |
commit | 4d76cd771dd3216b54fae54a9caddf71a0b57580 (patch) | |
tree | d7aa89bbf53ac76bc55e5d6ed5ffb3b6ddbf626d | |
parent | 70a58ef2e310521029de794caba6c8351ac99e86 (diff) |
ci: don't use system stockholm
-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 |