summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorgnidorah <gnidorah@users.noreply.github.com>2017-06-18 18:15:42 +0300
committergnidorah <gnidorah@users.noreply.github.com>2017-06-18 18:15:42 +0300
commitfd072b98d082edf7841f515b9d27f22608684c2f (patch)
tree4f6bb5f46c29127d917dcff296a247a07843035e /pkgs/tools
parent100cd2af5aadfb457037a989a0ac5c4437b66ea5 (diff)
downloadnixpkgs-fd072b98d082edf7841f515b9d27f22608684c2f.tar
nixpkgs-fd072b98d082edf7841f515b9d27f22608684c2f.tar.gz
nixpkgs-fd072b98d082edf7841f515b9d27f22608684c2f.tar.bz2
nixpkgs-fd072b98d082edf7841f515b9d27f22608684c2f.tar.lz
nixpkgs-fd072b98d082edf7841f515b9d27f22608684c2f.tar.xz
nixpkgs-fd072b98d082edf7841f515b9d27f22608684c2f.tar.zst
nixpkgs-fd072b98d082edf7841f515b9d27f22608684c2f.zip
ps_mem: init at 3.9
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/system/ps_mem/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/tools/system/ps_mem/default.nix b/pkgs/tools/system/ps_mem/default.nix
new file mode 100644
index 00000000000..bbac78f4864
--- /dev/null
+++ b/pkgs/tools/system/ps_mem/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, pythonPackages, fetchFromGitHub }:
+
+let
+  version = "3.9";
+  pname = "ps_mem";
+in pythonPackages.buildPythonApplication rec {
+  name = "${pname}-${version}";
+
+  src = fetchFromGitHub {
+    owner = "pixelb";
+    repo = "${pname}";
+    rev = "f0891def54f1edb78a70006603d2b025236b830f";
+    sha256 = "1vy0z5nhia61hpqndf7kkjm12mgi0kh33jx5g1glggy45ymcisif";
+  };
+
+  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;
+  };
+}