mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 00:22:13 +00:00
08f0ce2174
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/kayj1xp8j8dd280y98rajpmqh0sgmg8n-pagemon-0.01.12/bin/pagemon -h` got 0 exit code - ran `/nix/store/kayj1xp8j8dd280y98rajpmqh0sgmg8n-pagemon-0.01.12/bin/pagemon -h` and found version 0.01.12 - found 0.01.12 with grep in /nix/store/kayj1xp8j8dd280y98rajpmqh0sgmg8n-pagemon-0.01.12 - found 0.01.12 in filename of file in /nix/store/kayj1xp8j8dd280y98rajpmqh0sgmg8n-pagemon-0.01.12
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pagemon-${version}";
|
|
version = "0.01.12";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "0bddn22daf33dbghwfjxxgsn4gmr5knr6h9sbqhs7g7p85dla6wa";
|
|
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;
|
|
};
|
|
}
|