3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/iotop-c/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
854 B
Nix
Raw Normal View History

2021-06-12 19:51:26 +01:00
{stdenv, fetchFromGitHub, lib, ncurses, pkg-config }:
stdenv.mkDerivation rec {
pname = "iotop-c";
2022-07-28 17:07:32 +01:00
version = "1.22";
2021-06-12 19:51:26 +01:00
src = fetchFromGitHub {
owner = "Tomas-M";
repo = "iotop";
rev = "v${version}";
2022-07-28 17:07:32 +01:00
sha256 = "sha256-MHjG14vZsuDrR9/SLotb7Uc3RW8Np9E2X0GXkSM+RxE=";
2021-06-12 19:51:26 +01:00
};
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";
2021-06-16 01:16:16 +01:00
maintainers = [ maintainers.arezvov ];
2021-06-12 19:51:26 +01:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}