From 74f03b7e7cd20f3ada7a6d13520017884dd609cd Mon Sep 17 00:00:00 2001 From: Alexander Rezvov Date: Sat, 12 Jun 2021 21:51:26 +0300 Subject: iotop-c: add new package --- pkgs/os-specific/linux/iotop-c/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/os-specific/linux/iotop-c/default.nix (limited to 'pkgs/os-specific/linux/iotop-c') diff --git a/pkgs/os-specific/linux/iotop-c/default.nix b/pkgs/os-specific/linux/iotop-c/default.nix new file mode 100644 index 00000000000..0d03f2024b4 --- /dev/null +++ b/pkgs/os-specific/linux/iotop-c/default.nix @@ -0,0 +1,30 @@ +{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"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + }; +} -- cgit 1.4.1 From 34ee46760f1cbd813f95bee49534d842e5c882cc Mon Sep 17 00:00:00 2001 From: Alexander Rezvov Date: Wed, 16 Jun 2021 03:16:16 +0300 Subject: maintainers: add arezvov --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/os-specific/linux/iotop-c/default.nix | 1 + 2 files changed, 7 insertions(+) (limited to 'pkgs/os-specific/linux/iotop-c') diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3dbc1902b71..2b7984aa53e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/os-specific/linux/iotop-c/default.nix b/pkgs/os-specific/linux/iotop-c/default.nix index 0d03f2024b4..47cfa57fe81 100644 --- a/pkgs/os-specific/linux/iotop-c/default.nix +++ b/pkgs/os-specific/linux/iotop-c/default.nix @@ -24,6 +24,7 @@ stdenv.mkDerivation rec { 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; }; -- cgit 1.4.1