doctl: fix cross compilation
This commit is contained in:
parent
4f3bc69ff8
commit
aa7afd8d40
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue