summary refs log tree commit diff
path: root/pkgs/os-specific/linux/pagemon
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-01-27 04:42:12 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-01-27 04:42:12 +0100
commitde43878f0900056930b464f374f2515a6a39a492 (patch)
tree642d81b928e3af9d254dd83232019ec1179da06e /pkgs/os-specific/linux/pagemon
parentfa247fa213be33c2ffd31419bde909457b261ded (diff)
downloadnixpkgs-de43878f0900056930b464f374f2515a6a39a492.tar
nixpkgs-de43878f0900056930b464f374f2515a6a39a492.tar.gz
nixpkgs-de43878f0900056930b464f374f2515a6a39a492.tar.bz2
nixpkgs-de43878f0900056930b464f374f2515a6a39a492.tar.lz
nixpkgs-de43878f0900056930b464f374f2515a6a39a492.tar.xz
nixpkgs-de43878f0900056930b464f374f2515a6a39a492.tar.zst
nixpkgs-de43878f0900056930b464f374f2515a6a39a492.zip
pagemon: init at 0.01.06
Diffstat (limited to 'pkgs/os-specific/linux/pagemon')
-rw-r--r--pkgs/os-specific/linux/pagemon/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/pagemon/default.nix b/pkgs/os-specific/linux/pagemon/default.nix
new file mode 100644
index 00000000000..3c94362b820
--- /dev/null
+++ b/pkgs/os-specific/linux/pagemon/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchFromGitHub, ncurses }:
+
+stdenv.mkDerivation rec {
+  name = "pagemon-${version}";
+  version = "0.01.06";
+
+  src = fetchFromGitHub {
+    sha256 = "0p6mzmyjn5dq1ma9ld47gnrszyf0yph76dd5k7hl60a5zq5741aa";
+    rev = "V${version}";
+    repo = "pagemon";
+    owner = "ColinIanKing";
+  };
+
+  buildInputs = [ ncurses ];
+
+  makeFlags = [
+    "BINDIR=$(out)/bin"
+    "MANDIR=$(out)/share/man/man8"
+  ];
+
+  meta = with stdenv.lib; {
+    inherit (src.meta) homepage;
+    description = "Interactive memory/page monitor for Linux";
+    longDescription = ''
+      pagemon is an ncurses based interactive memory/page monitoring tool
+      allowing one to browse the memory map of an active running process
+      on Linux.
+      pagemon reads the PTEs of a given process and display the soft/dirty
+      activity in real time. The tool identifies the type of memory mapping
+      a page belongs to, so one can easily scan through memory looking at
+      pages of memory belonging data, code, heap, stack, anonymous mappings
+      or even swapped-out pages.
+    '';
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ nckx ];
+  };
+}