1 { lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security, libiconv, Libsystem }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-Dp0XdARZrDrZ9QOv+V2ZKYV7J89t135ie5LSWz/KKHY=";
14 cargoHash = "sha256-EifER0wt2Nw7WrlVwc49tZHH/av4OkzTPYSzl9mVJI8=";
16 nativeBuildInputs = [ installShellFiles ]
17 ++ lib.optionals stdenv.hostPlatform.isDarwin [ rustPlatform.bindgenHook ];
20 for shell in bash fish zsh; do
21 $out/bin/procs --gen-completion $shell
23 installShellCompletion procs.{bash,fish} --zsh _procs
26 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security libiconv Libsystem ];
29 description = "Modern replacement for ps written in Rust";
30 homepage = "https://github.com/dalance/procs";
31 changelog = "https://github.com/dalance/procs/raw/v${version}/CHANGELOG.md";
32 license = licenses.mit;
33 maintainers = with maintainers; [ Br1ght0ne sciencentistguy ];
34 mainProgram = "procs";