diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2022-07-25 07:41:14 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2022-07-25 07:48:11 +0200 |
commit | 939efa952437e002441f6e626af8ef8a2e3ba805 (patch) | |
tree | 6382f7e1f887147ace1b91fc77b1bb73af4a5993 /pkgs/tools/misc/upterm | |
parent | c0773369108ce451dd9c5de601b96bf93a81cb9f (diff) |
upterm: fix cross compiling
Diffstat (limited to 'pkgs/tools/misc/upterm')
-rw-r--r-- | pkgs/tools/misc/upterm/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/misc/upterm/default.nix b/pkgs/tools/misc/upterm/default.nix index 0dc0886b57dc1..cfe1c570c7653 100644 --- a/pkgs/tools/misc/upterm/default.nix +++ b/pkgs/tools/misc/upterm/default.nix @@ -18,11 +18,13 @@ buildGoModule rec { vendorSha256 = null; + subPackages = [ "cmd/upterm" "cmd/uptermd" ]; + nativeBuildInputs = [ installShellFiles ]; postInstall = '' - $out/bin/gendoc - rm $out/bin/gendoc + # force go to build for build arch rather than host arch during cross-compiling + CGO_ENABLED=0 GOOS= GOARCH= go run cmd/gendoc/main.go installManPage etc/man/man*/* installShellCompletion --bash --name upterm.bash etc/completion/upterm.bash_completion.sh installShellCompletion --zsh --name _upterm etc/completion/upterm.zsh_completion |