nixpkgs/pkgs/tools/admin/procs/default.nix

28 lines
717 B
Nix
Raw Normal View History

2019-05-08 10:01:20 -07:00
{ stdenv, fetchFromGitHub, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "procs";
2019-10-30 20:00:00 -07:00
version = "0.8.13";
2019-05-08 10:01:20 -07:00
src = fetchFromGitHub {
owner = "dalance";
repo = pname;
rev = "v${version}";
2019-10-30 20:00:00 -07:00
sha256 = "0yy41v2crds9500fa4r0kqiddciqkilr2h13nrjqy44ckvw2mi5y";
2019-05-08 10:01:20 -07:00
};
2019-10-30 20:00:00 -07:00
cargoSha256 = "1gnl97h0l9k8xnrwl6807qlbx13vd45kmla02mk9p1h52sr0din5";
2019-05-08 10:01:20 -07:00
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;
};
}