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

28 lines
728 B
Nix
Raw Normal View History

2019-12-09 09:20:00 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, fetchpatch
2019-05-08 17:01:20 +00:00
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "procs";
2020-01-23 14:00:00 +00:00
version = "0.9.0";
2019-05-08 17:01:20 +00:00
src = fetchFromGitHub {
owner = "dalance";
repo = pname;
rev = "v${version}";
2020-01-23 14:00:00 +00:00
sha256 = "1lprxfy733rs39fg8yif3p8vz9szk7d529ahn1kn70zm8i3mqpch";
2019-05-08 17:01:20 +00:00
};
2020-01-23 14:00:00 +00:00
cargoSha256 = "11l2dggvkk2vx4xap2q02qrr576i4mswf67plhg23azr43fpi0r5";
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;
};
}