procs: fix cross compilation (#346310)

This commit is contained in:
misuzu
2024-12-14 14:04:01 +02:00
committed by GitHub
+2 -2
View File
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security, libiconv, Libsystem }:
{ lib, stdenv, buildPackages, fetchFromGitHub, rustPlatform, installShellFiles, Security, libiconv, Libsystem }:
rustPlatform.buildRustPackage rec {
pname = "procs";
@@ -18,7 +18,7 @@ rustPlatform.buildRustPackage rec {
postInstall = ''
for shell in bash fish zsh; do
$out/bin/procs --gen-completion $shell
${stdenv.hostPlatform.emulator buildPackages} $out/bin/procs --gen-completion $shell
done
installShellCompletion procs.{bash,fish} --zsh _procs
'';