mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
Adding IOtop
svn path=/nixpkgs/trunk/; revision=24818
This commit is contained in:
parent
8cd20e6f61
commit
6162fffede
2 changed files with 50 additions and 0 deletions
46
pkgs/os-specific/linux/iotop/default.nix
Normal file
46
pkgs/os-specific/linux/iotop/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
x@{builderDefsPackage
|
||||
, python, makeWrapper
|
||||
, ...}:
|
||||
builderDefsPackage
|
||||
(a :
|
||||
let
|
||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||
[];
|
||||
|
||||
buildInputs = map (n: builtins.getAttr n x)
|
||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||
sourceInfo = rec {
|
||||
baseName="iotop";
|
||||
version="0.4.1";
|
||||
name="${baseName}-${version}";
|
||||
url="http://guichaz.free.fr/${baseName}/files/${name}.tar.bz2";
|
||||
hash="1dfvw3khr2rvqllvs9wad9ca3ld4i7szqf0ibq87rn36ickrf3ll";
|
||||
};
|
||||
in
|
||||
rec {
|
||||
src = a.fetchurl {
|
||||
url = sourceInfo.url;
|
||||
sha256 = sourceInfo.hash;
|
||||
};
|
||||
|
||||
inherit (sourceInfo) name version;
|
||||
inherit buildInputs;
|
||||
|
||||
phaseNames = ["installPythonPackage" "wrapBinContentsPython"];
|
||||
|
||||
meta = {
|
||||
description = "A tool to find out the processes doing the most IO";
|
||||
maintainers = with a.lib.maintainers;
|
||||
[
|
||||
raskin
|
||||
];
|
||||
platforms = with a.lib.platforms;
|
||||
linux;
|
||||
};
|
||||
passthru = {
|
||||
updateInfo = {
|
||||
downloadPage = "http://guichaz.free.fr/iotop/";
|
||||
};
|
||||
};
|
||||
}) x
|
||||
|
|
@ -4508,6 +4508,10 @@ let
|
|||
|
||||
ifplugd = callPackage ../os-specific/linux/ifplugd { };
|
||||
|
||||
iotop = callPackage ../os-specific/linux/iotop {
|
||||
python = pythonFull;
|
||||
};
|
||||
|
||||
iproute = callPackage ../os-specific/linux/iproute { };
|
||||
|
||||
iputils = (
|
||||
|
|
Loading…
Reference in a new issue