2020-01-26 10:20:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2019-05-08 19:01:20 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "procs";
|
2020-02-13 10:20:00 +01:00
|
|
|
version = "0.9.9";
|
2019-05-08 19:01:20 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dalance";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-02-13 10:20:00 +01:00
|
|
|
sha256 = "1dvwn991widribk563jn3461f1913bpga0yyfr5mnf4p4p8s59j6";
|
2019-05-08 19:01:20 +02:00
|
|
|
};
|
|
|
|
|
2020-02-14 03:00:26 +01:00
|
|
|
# Delete this on next update; see #79975 for details
|
|
|
|
legacyCargoFetcher = true;
|
|
|
|
|
2020-01-31 10:20:00 +01:00
|
|
|
cargoSha256 = "11wv02nn6gp32zzcd6kmsh6ky0dzyk1qqhb5vxvmq2nxhxjlddwv";
|
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;
|
|
|
|
};
|
|
|
|
}
|