Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 38 lines 1.2 kB view raw
1{ lib, stdenv, fetchurl, ncurses }: 2 3stdenv.mkDerivation rec { 4 pname = "ftop"; 5 version = "1.0"; 6 7 src = fetchurl { 8 url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ftop/${pname}-${version}.tar.bz2"; 9 sha256 = "3a705f4f291384344cd32c3dd5f5f6a7cd7cea7624c83cb7e923966dbcd47f82"; 10 }; 11 12 buildInputs = [ ncurses ]; 13 14 patches = [ 15 ./ftop-fix_buffer_overflow.patch 16 ./ftop-fix_printf_format.patch 17 ]; 18 patchFlags = [ "-p0" ]; 19 20 postPatch = '' 21 substituteInPlace configure --replace "curses" "ncurses" 22 ''; 23 24 meta = with lib; { 25 description = "Show progress of open files and file systems"; 26 mainProgram = "ftop"; 27 homepage = "https://code.google.com/archive/p/ftop/"; 28 license = licenses.gpl3Plus; 29 longDescription = '' 30 ftop is to files what top is to processes. The progress of all open files 31 and file systems can be monitored. If run as a regular user, the set of 32 open files will be limited to those in that user's processes (which is 33 generally all that is of interest to the user). 34 As with top, the items are displayed in order from most to least active. 35 ''; 36 platforms = platforms.linux; 37 }; 38}