nixpkgs/pkgs/tools/admin/procs/default.nix
2020-02-06 13:50:30 +00:00

26 lines
715 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "procs";
version = "0.9.6";
src = fetchFromGitHub {
owner = "dalance";
repo = pname;
rev = "v${version}";
sha256 = "06q18ynb4r9dcxc690291z9vvll9rfpc8j1gkkgfav2f1xdndzq3";
};
cargoSha256 = "11wv02nn6gp32zzcd6kmsh6ky0dzyk1qqhb5vxvmq2nxhxjlddwv";
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
meta = with stdenv.lib; {
description = "A modern replacement for ps written in Rust";
homepage = "https://github.com/dalance/procs";
license = with licenses; [ mit ];
maintainers = [ maintainers.dalance ];
platforms = with platforms; linux ++ darwin;
};
}