diff options
author | Nick Cao <nickcao@nichi.co> | 2022-09-20 23:03:56 +0800 |
---|---|---|
committer | Rick van Schijndel <Mindavi@users.noreply.github.com> | 2022-10-31 23:17:46 +0100 |
commit | aa7afd8d40d6beab71b90f77f7e73cf2fcd5616f (patch) | |
tree | 1ea6b1f2627a1b740e121e2bf296301debbdc082 | |
parent | 4f3bc69ff87d19dff18540104f01c40b5b20d934 (diff) |
doctl: fix cross compilation
-rw-r--r-- | pkgs/development/tools/doctl/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/tools/doctl/default.nix b/pkgs/development/tools/doctl/default.nix index 26d9fb6403abc..22b60c5e8e6c8 100644 --- a/pkgs/development/tools/doctl/default.nix +++ b/pkgs/development/tools/doctl/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: +{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles, buildPackages }: buildGoModule rec { pname = "doctl"; @@ -22,7 +22,7 @@ buildGoModule rec { postInstall = '' export HOME=$(mktemp -d) # attempts to write to /homeless-shelter for shell in bash fish zsh; do - $out/bin/doctl completion $shell > doctl.$shell + ${stdenv.hostPlatform.emulator buildPackages} $out/bin/doctl completion $shell > doctl.$shell installShellCompletion doctl.$shell done ''; |