pscale: fix cross build
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
stdenv,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
@@ -30,7 +31,7 @@ buildGoModule rec {
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd pscale \
|
||||
--bash <($out/bin/pscale completion bash) \
|
||||
--fish <($out/bin/pscale completion fish) \
|
||||
|
||||
Reference in New Issue
Block a user