Merge pull request #126697 from arezvov/iotop-c

This commit is contained in:
Sandro 2021-06-16 03:20:23 +02:00 committed by GitHub
commit 7a7c7de4e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 0 deletions

View File

@ -790,6 +790,12 @@
githubId = 718812;
name = "Antoine R. Dumont";
};
arezvov = {
email = "alex@rezvov.ru";
github = "arezvov";
githubId = 58516559;
name = "Alexander Rezvov";
};
arianvp = {
email = "arian.vanputten@gmail.com";
github = "arianvp";

View File

@ -0,0 +1,31 @@
{stdenv, fetchFromGitHub, lib, ncurses, pkg-config }:
stdenv.mkDerivation rec {
pname = "iotop-c";
version = "1.17";
src = fetchFromGitHub {
owner = "Tomas-M";
repo = "iotop";
rev = "v${version}";
sha256 = "0hjy30155c3nijx3jgyn5kpj293632p0j6f3lf5acdfax1ynav86";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ ncurses ];
makeFlags = [ "DESTDIR=$(out)" "TARGET=iotop-c" ];
postInstall = ''
mv $out/usr/share/man/man8/{iotop,iotop-c}.8
ln -s $out/usr/sbin $out/bin
ln -s $out/usr/share $out/share
'';
meta = with lib; {
description = "iotop identifies processes that use high amount of input/output requests on your machine";
homepage = "https://github.com/Tomas-M/iotop";
maintainers = [ maintainers.arezvov ];
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}

View File

@ -20429,6 +20429,7 @@ in
iomelt = callPackage ../os-specific/linux/iomelt { };
iotop = callPackage ../os-specific/linux/iotop { };
iotop-c = callPackage ../os-specific/linux/iotop-c { };
iproute2 = callPackage ../os-specific/linux/iproute { };