From a8a20f1a74c582081f4e82df793ad4cb2e67ca5d Mon Sep 17 00:00:00 2001 From: Molly Miller Date: Sun, 17 Jan 2021 21:45:13 +0000 Subject: 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. --- infra/libkookie/build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3