2014-12-10 04:30:19 +00:00
|
|
|
{ stdenv, fetchurl, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-11-26 17:44:44 +00:00
|
|
|
name = "ftop-${version}";
|
2016-01-24 19:31:44 +00:00
|
|
|
version = "1.0";
|
2014-12-10 04:30:19 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
];
|
2015-11-26 17:44:44 +00:00
|
|
|
patchFlags = [ "-p0" ];
|
2014-12-10 04:30:19 +00:00
|
|
|
|
|
|
|
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/;
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2014-12-10 04:30:19 +00:00
|
|
|
longDescription = ''
|
2015-11-26 17:44:44 +00:00
|
|
|
ftop is to files what top is to processes. The progress of all open files
|
2014-12-10 04:30:19 +00:00
|
|
|
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 ];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2014-12-10 04:30:19 +00:00
|
|
|
};
|
|
|
|
}
|