diff options
author | dalance <dalance@gmail.com> | 2019-05-09 02:01:20 +0900 |
---|---|---|
committer | dalance <dalance@gmail.com> | 2019-05-09 02:01:20 +0900 |
commit | dd3b53ce79aad64c664be5d01caaaa8a7cfbcdd7 (patch) | |
tree | 044ad95b6de7c9d8a9f353eaf0fce3f6cd914a8d /pkgs | |
parent | a29912c701d863a6619e9c2b9547522fa6c2b161 (diff) |
procs: init at 0.8.5
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/admin/procs/default.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/admin/procs/default.nix b/pkgs/tools/admin/procs/default.nix new file mode 100644 index 000000000000..7c1e743a06e2 --- /dev/null +++ b/pkgs/tools/admin/procs/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchFromGitHub, rustPlatform +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "procs"; + version = "0.8.5"; + + src = fetchFromGitHub { + owner = "dalance"; + repo = pname; + rev = "v${version}"; + sha256 = "0ihww2sm9hnh748723lr1cxw9zyi9nfxbbiij5a465mypa2p7w0v"; + }; + + cargoSha256 = "1aq2nhspb9kp9mzj5550xph09qvd0ahlw246hcx2mqkr4frh64x0"; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 57ba1ab44dcc..5ec511e4cee6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1739,6 +1739,10 @@ in pyznap = python3Packages.callPackage ../tools/backup/pyznap {}; + procs = callPackage ../tools/admin/procs { + inherit (darwin.apple_sdk.frameworks) Security; + }; + scour = with python3Packages; toPythonApplication scour; s2png = callPackage ../tools/graphics/s2png { }; |