2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
2019-05-09 02:01:20 +09:00
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
|
pname = "procs";
|
2021-01-28 13:07:10 +00:00
|
|
|
version = "0.11.1";
|
2019-05-09 02:01:20 +09:00
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "dalance";
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = "v${version}";
|
2021-01-28 13:07:10 +00:00
|
|
|
sha256 = "sha256-e9fdqsv/P3zZdjsdAkwO21txPS1aWd0DuqRQUdr1vX4=";
|
2019-05-09 02:01:20 +09:00
|
|
|
};
|
|
|
|
|
|
2021-01-28 13:07:10 +00:00
|
|
|
cargoSha256 = "sha256-ilSDLbPQnmhQcNbtKCpUNmyZY0JUY/Ksg0sj/t7veT0=";
|
2019-05-09 02:01:20 +09:00
|
|
|
|
2021-01-15 16:19:50 +07:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
2019-05-09 02:01:20 +09:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-09 02:01:20 +09:00
|
|
|
description = "A modern replacement for ps written in Rust";
|
|
|
|
|
homepage = "https://github.com/dalance/procs";
|
2020-02-18 03:23:19 +02:00
|
|
|
license = licenses.mit;
|
2020-11-17 13:02:06 +02:00
|
|
|
maintainers = with maintainers; [ dalance Br1ght0ne ];
|
2019-05-09 02:01:20 +09:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
|
};
|
|
|
|
|
}
|