nixpkgs/pkgs/tools/system/ps_mem/default.nix

24 lines
615 B
Nix
Raw Normal View History

2017-06-18 08:15:42 -07:00
{ stdenv, pythonPackages, fetchFromGitHub }:
let
2019-11-02 12:42:19 -07:00
version = "3.13";
2017-06-18 08:15:42 -07:00
pname = "ps_mem";
2019-08-13 14:52:01 -07:00
in pythonPackages.buildPythonApplication {
2017-06-18 08:15:42 -07:00
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "pixelb";
2019-09-08 16:38:31 -07:00
repo = pname;
2019-01-11 10:32:41 -08:00
rev = "v${version}";
2019-11-02 12:42:19 -07:00
sha256 = "0pgi9hvwfbkzvwicqlkwx4rwal1ikza018yxbwpnf7c80zw0zaw9";
2017-06-18 08:15:42 -07:00
};
meta = with stdenv.lib; {
description = "A utility to accurately report the in core memory usage for a program";
homepage = https://github.com/pixelb/ps_mem;
license = licenses.lgpl21;
maintainers = [ maintainers.gnidorah ];
platforms = platforms.linux;
};
}