2017-06-18 17:15:42 +02:00
|
|
|
{ stdenv, pythonPackages, fetchFromGitHub }:
|
|
|
|
|
|
|
|
let
|
2019-01-11 19:32:41 +01:00
|
|
|
version = "3.12";
|
2017-06-18 17:15:42 +02:00
|
|
|
pname = "ps_mem";
|
2019-08-13 23:52:01 +02:00
|
|
|
in pythonPackages.buildPythonApplication {
|
2017-06-18 17:15:42 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pixelb";
|
2019-09-09 01:38:31 +02:00
|
|
|
repo = pname;
|
2019-01-11 19:32:41 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0kcxlmfisbwf24p2k72njfyfp22fjr9p9zalg9b4w0yhnlzk24ph";
|
2017-06-18 17:15:42 +02: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;
|
|
|
|
};
|
|
|
|
}
|