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

29 lines
800 B
Nix
Raw Normal View History

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