about summary refs log tree commit diff
path: root/nix/buildkite
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-02-04T17·14+0300
committerclbot <clbot@tvl.fyi>2022-02-04T19·49+0000
commitb5150fbacf2351a393016e72a872f4c0c2bf7682 (patch)
tree36872da23ecf00ac6b64f5238ae805ee61efa3c8 /nix/buildkite
parent91ef2b671e18680de6b135910491466498896bdb (diff)
fix(nix/buildkite): read & print the store path of built derivations r/3770
This was useful to have in CI, e.g. when targeting a specific NixOS
system. The actual result symlink which is printed is not useful.

Alternative solution would be to change the wrapping of this so that
we conditionally create the symlink for extra steps, but I think it's
not worth the complexity of evaluating the step twice.

Change-Id: Id86eb5114bec935c63a2907ec5f169fc5d41a6cc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5227
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'nix/buildkite')
-rw-r--r--nix/buildkite/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/buildkite/default.nix b/nix/buildkite/default.nix
index b1653e1ad5f2..d299d526241b 100644
--- a/nix/buildkite/default.nix
+++ b/nix/buildkite/default.nix
@@ -66,7 +66,7 @@ rec {
     # Nix has no concept of depending on a derivation file without depending on
     # at least one of its `outPath`s, so we need to discard the string context
     # if we don't want to build everything during pipeline construction.
-    "nix-store --realise '${drvPath}' --add-root result --indirect"
+    "(nix-store --realise '${drvPath}' --add-root result --indirect && readlink result)"
 
     # Since we don't gcroot the derivation files, they may be deleted by the
     # garbage collector. In that case we can reevaluate and build the attribute