1 {stdenv, fetchFromGitHub, lib, ncurses, pkg-config }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-m75BHvKMk9ckZ6TgT1QDfHYcEfvfEwWu0bQacnVgSmU=";
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ ncurses ];
16 makeFlags = [ "DESTDIR=$(out)" "TARGET=iotop-c" ];
19 mv $out/usr/share/man/man8/{iotop,iotop-c}.8
20 ln -s $out/usr/sbin $out/bin
21 ln -s $out/usr/share $out/share
25 description = "iotop identifies processes that use high amount of input/output requests on your machine";
26 homepage = "https://github.com/Tomas-M/iotop";
27 maintainers = [ maintainers.arezvov ];
28 mainProgram = "iotop-c";
29 license = licenses.gpl2Plus;
30 platforms = platforms.linux;