From b08677c04c4e3fae3d700c8c603bd267c2abca8c Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Tue, 21 Jan 2020 18:16:19 +0000 Subject: build-on-hyperion: providing paths to libkookie correctly --- build-on-hyperion | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'build-on-hyperion') diff --git a/build-on-hyperion b/build-on-hyperion index 402a251defb..8dafb6d9497 100755 --- a/build-on-hyperion +++ b/build-on-hyperion @@ -1,5 +1,14 @@ #!/bin/sh -drvs="$(nix-instantiate "$@")" +HOST=$(hostname) +DIR=$(realpath $(dirname $0)) +OUT=$(mktemp -du) +ROOT="$DIR/roots/$HOST.nix" + +drvs="$(nix-instantiate -A system '' \ + -I nixos-config=$ROOT \ + -I nixpkgs=$DIR/nixpkgs \ + -I nixpkgs-overlays=$DIR/overlays \ + -I home-manager=$DIR/home-manager)" nix-copy-closure -s --to hyperion $drvs nix-copy-closure --from hyperion $(ssh hyperion nix-build $drvs) -- cgit v1.2.3