3
0
Fork 0
forked from mirrors/nixpkgs

doctl: fix cross compilation

This commit is contained in:
Nick Cao 2022-09-20 23:03:56 +08:00 committed by Rick van Schijndel
parent 4f3bc69ff8
commit aa7afd8d40

View file

@ -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
'';