2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, ncurses }:
|
2014-12-10 05:30:19 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ftop";
|
2016-01-24 20:31:44 +01:00
|
|
|
version = "1.0";
|
2014-12-10 05:30:19 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ftop/${pname}-${version}.tar.bz2";
|
2014-12-10 05:30:19 +01:00
|
|
|
sha256 = "3a705f4f291384344cd32c3dd5f5f6a7cd7cea7624c83cb7e923966dbcd47f82";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./ftop-fix_buffer_overflow.patch
|
|
|
|
./ftop-fix_printf_format.patch
|
|
|
|
];
|
2015-11-26 18:44:44 +01:00
|
|
|
patchFlags = [ "-p0" ];
|
2014-12-10 05:30:19 +01:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure --replace "curses" "ncurses"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-12-10 05:30:19 +01:00
|
|
|
description = "Show progress of open files and file systems";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://code.google.com/archive/p/ftop/";
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2014-12-10 05:30:19 +01:00
|
|
|
longDescription = ''
|
2015-11-26 18:44:44 +01:00
|
|
|
ftop is to files what top is to processes. The progress of all open files
|
2014-12-10 05:30:19 +01: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.
|
|
|
|
'';
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.linux;
|
2014-12-10 05:30:19 +01:00
|
|
|
};
|
|
|
|
}
|