3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/ftop/default.nix
Tobias Geerinckx-Rice 9fb8020e4e Add version attribute where maintainers |= nckx
This will probably be mandatory soon, and is a step in the right
direction. Removes the deprecated meta.version, and move some meta
sections to the end of the file where I should have put them in
the first place.
2016-01-25 17:35:21 +01:00

39 lines
1.1 KiB
Nix

{ stdenv, fetchurl, ncurses }:
stdenv.mkDerivation rec {
name = "ftop-${version}";
version = "1.0";
src = fetchurl {
url = "http://ftop.googlecode.com/files/${name}.tar.bz2";
sha256 = "3a705f4f291384344cd32c3dd5f5f6a7cd7cea7624c83cb7e923966dbcd47f82";
};
buildInputs = [ ncurses ];
patches = [
./ftop-fix_buffer_overflow.patch
./ftop-fix_printf_format.patch
];
patchFlags = [ "-p0" ];
postPatch = ''
substituteInPlace configure --replace "curses" "ncurses"
'';
meta = with stdenv.lib; {
description = "Show progress of open files and file systems";
homepage = https://code.google.com/p/ftop/;
license = licenses.gpl3Plus;
longDescription = ''
ftop is to files what top is to processes. The progress of all open files
and file systems can be monitored. If run as a regular user, the set of
open files will be limited to those in that user's processes (which is
generally all that is of interest to the user).
As with top, the items are displayed in order from most to least active.
'';
maintainers = with maintainers; [ nckx ];
platforms = platforms.linux;
};
}