aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie
diff options
context:
space:
mode:
authorMolly Miller <knmcn@m-squa.red>2021-01-17 21:45:13 +0000
committerKatharina Fey <kookie@spacekookie.de>2021-01-18 10:48:36 +0100
commita8a20f1a74c582081f4e82df793ad4cb2e67ca5d (patch)
treec8be13a666fe4c0afd0cddb081424194df50b8db /infra/libkookie
parent1230ad1eb3cfadcb345b1de493ce746281e4f529 (diff)
libkookie: inherit the host to build from the environment if set
This makes it possible to test the build of libkookie system derivations on hosts other than the end target.
Diffstat (limited to 'infra/libkookie')
-rwxr-xr-xinfra/libkookie/build5
1 files changed, 4 insertions, 1 deletions
diff --git a/infra/libkookie/build b/infra/libkookie/build
index b4e24bdfa63b..36a2039c66ff 100755
--- a/infra/libkookie/build
+++ b/infra/libkookie/build
@@ -2,7 +2,10 @@
set -eo pipefail
-HOST=$(hostname)
+if [ -z "$HOST" ]
+then
+ HOST=$(hostname)
+fi
DIR=$(realpath "$(dirname "$0")")
OUT=$(mktemp -du)
ROOT="$DIR/roots/$HOST.nix"