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