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-02-06 13:17:35 +00:00
version = "1.21";
2021-06-12 19:51:26 +01:00
src = fetchFromGitHub {
owner = "Tomas-M";
repo = "iotop";
rev = "v${version}";
2022-02-06 13:17:35 +00:00
sha256 = "sha256-Zzm0EV6baQvKPOC762mnieYe1JM7ZfNovKqFQt20jQ8=";
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;
};
}