diff options
author | Mathis Antony <sveitser@gmail.com> | 2018-03-30 20:19:08 +0800 |
---|---|---|
committer | Austin Seipp <aseipp@pobox.com> | 2018-04-01 00:45:56 -0500 |
commit | 25b3d27257807a7bdefdd5acc9a423254f6e093c (patch) | |
tree | cbd694d467bffb941f1d408c083c9231b42d208f /pkgs/os-specific/linux/nmon | |
parent | f07348890d0821d185567a51fd3487cf7399afe6 (diff) | |
download | nixlib-25b3d27257807a7bdefdd5acc9a423254f6e093c.tar nixlib-25b3d27257807a7bdefdd5acc9a423254f6e093c.tar.gz nixlib-25b3d27257807a7bdefdd5acc9a423254f6e093c.tar.bz2 nixlib-25b3d27257807a7bdefdd5acc9a423254f6e093c.tar.lz nixlib-25b3d27257807a7bdefdd5acc9a423254f6e093c.tar.xz nixlib-25b3d27257807a7bdefdd5acc9a423254f6e093c.tar.zst nixlib-25b3d27257807a7bdefdd5acc9a423254f6e093c.zip |
nmon: init at 16g
Diffstat (limited to 'pkgs/os-specific/linux/nmon')
-rw-r--r-- | pkgs/os-specific/linux/nmon/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/nmon/default.nix b/pkgs/os-specific/linux/nmon/default.nix new file mode 100644 index 000000000000..ae6abeb1f56f --- /dev/null +++ b/pkgs/os-specific/linux/nmon/default.nix @@ -0,0 +1,27 @@ +{ fetchurl, stdenv, ncurses }: + +stdenv.mkDerivation rec { + name = "nmon-${version}"; + version = "16g"; + + src = fetchurl { + url = "mirror://sourceforge/nmon/lmon${version}.c"; + sha256 = "127n8xvmg7byp42sm924mdr7hd3bsfsxpryzahl0cfsh7dlxv0ns"; + }; + + buildInputs = [ ncurses ]; + unpackPhase = ":"; + buildPhase = "cc -o nmon ${src} -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncurses -lm -g -D X86"; + installPhase = '' + mkdir -p $out/bin + cp nmon $out/bin + ''; + + meta = with stdenv.lib; { + description = "AIX & Linux Performance Monitoring tool"; + homepage = "http://nmon.sourceforge.net"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ sveitser ]; + }; +} |