procs: fix cross compilation

This commit is contained in:
Colin
2024-10-03 11:04:05 +00:00
parent ce76e7aa78
commit b552249a18
+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
'';