mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
35 lines
1,002 B
Nix
35 lines
1,002 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security, libiconv }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "procs";
|
|
version = "0.11.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dalance";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-kt1qv4x48qXzlqvV2nfFXkYzgeC4m+rA7NA+coznNno=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-itncLfIjNwwAO393gZ5xyRnig/N0JEovBQvOIAC4e9g=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
for shell in bash fish zsh; do
|
|
$out/bin/procs --completion $shell
|
|
done
|
|
installShellCompletion procs.{bash,fish} --zsh _procs
|
|
'';
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
|
|
|
|
meta = with lib; {
|
|
description = "A modern replacement for ps written in Rust";
|
|
homepage = "https://github.com/dalance/procs";
|
|
changelog = "https://github.com/dalance/procs/raw/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dalance Br1ght0ne ];
|
|
};
|
|
}
|