From aa7afd8d40d6beab71b90f77f7e73cf2fcd5616f Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 20 Sep 2022 23:03:56 +0800 Subject: [PATCH] doctl: fix cross compilation --- pkgs/development/tools/doctl/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/doctl/default.nix b/pkgs/development/tools/doctl/default.nix index 26d9fb6403ab..22b60c5e8e6c 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 '';