diff options
author | Katharina Fey <kookie@spacekookie.de> | 2020-01-21 18:16:19 +0000 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2020-01-21 18:16:19 +0000 |
commit | b08677c04c4e3fae3d700c8c603bd267c2abca8c (patch) | |
tree | 375d87ba038b13960b7cb7160d73a5573601577e /build-on-hyperion | |
parent | 92932c905358753811a64a9e1439bbbe925e7fe2 (diff) |
build-on-hyperion: providing paths to libkookie correctly
Diffstat (limited to 'build-on-hyperion')
-rwxr-xr-x | build-on-hyperion | 11 |
1 files changed, 10 insertions, 1 deletions
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 '<nixpkgs/nixos>' \ + -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) |