mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
62d800a8c5
The support of python2 will be dropped by the end of 2019, so python3 should be used by default here. In fact, this package supports both python v2 and v3, however the installation with python3 broke because of a bug in setup.py which is only fixed in the upstream's master[1]. Additionally, distros like debian already use iotop along with python3[2], so this should be a sensible thing to do. [1] https://repo.or.cz/iotop.git?a=commit;h=99c8d7cedce81f17b851954d94bfa73787300599 [2] https://packages.debian.org/de/buster/iotop
28 lines
759 B
Nix
28 lines
759 B
Nix
{ stdenv, fetchurl, python3Packages, fetchpatch }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
name = "iotop-0.6";
|
|
|
|
src = fetchurl {
|
|
url = "http://guichaz.free.fr/iotop/files/${name}.tar.bz2";
|
|
sha256 = "0nzprs6zqax0cwq8h7hnszdl3d2m4c2d4vjfxfxbnjfs9sia5pis";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = https://repo.or.cz/iotop.git/patch/99c8d7cedce81f17b851954d94bfa73787300599;
|
|
sha256 = "0rdgz6xpmbx77lkr1ixklliy1aavdsjmfdqvzwrjylbv0xh5wc8z";
|
|
})
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A tool to find out the processes doing the most IO";
|
|
homepage = http://guichaz.free.fr/iotop;
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.raskin ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|