1 { lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security, libiconv, Libsystem }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-JVxlfwCA+EetV4QYB6uEKe1yWt3sCvMPZwyIr6Td7Bw=";
14 cargoSha256 = "sha256-uUxwQIQTzQkKgR4F4sf4J1G2LaXiGbIvA6VM55zLK2E=";
16 nativeBuildInputs = [ installShellFiles ];
18 LIBCLANG_PATH = lib.optionals stdenv.isDarwin "${stdenv.cc.cc.lib}/lib/";
21 for shell in bash fish zsh; do
22 $out/bin/procs --completion $shell
24 installShellCompletion procs.{bash,fish} --zsh _procs
27 buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv Libsystem ];
30 description = "A modern replacement for ps written in Rust";
31 homepage = "https://github.com/dalance/procs";
32 changelog = "https://github.com/dalance/procs/raw/v${version}/CHANGELOG.md";
33 license = licenses.mit;
34 maintainers = with maintainers; [ Br1ght0ne SuperSandro2000 sciencentistguy ];