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

28 lines
717 B
Nix
Raw Normal View History

2019-05-08 17:01:20 +00:00
{ stdenv, fetchFromGitHub, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "procs";
2019-10-08 01:00:00 +00:00
version = "0.8.11";
2019-05-08 17:01:20 +00:00
src = fetchFromGitHub {
owner = "dalance";
repo = pname;
rev = "v${version}";
2019-10-08 01:00:00 +00:00
sha256 = "1bds84r5qw1chqd92rlijn4arqaywc5x4yjss3523ka55w3mphmf";
2019-05-08 17:01:20 +00:00
};
2019-10-08 01:00:00 +00:00
cargoSha256 = "11djms4rj3a1fs6f091gli32w6kww77n0072p0hwvqmc9yy1x57w";
2019-05-08 17:01:20 +00: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;
};
}