tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Adding IOtop
svn path=/nixpkgs/trunk/; revision=24818
Michael Raskin
15 years ago
6162fffe
8cd20e6f
+50
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
iotop
default.nix
top-level
all-packages.nix
+46
pkgs/os-specific/linux/iotop/default.nix
···
1
1
+
x@{builderDefsPackage
2
2
+
, python, makeWrapper
3
3
+
, ...}:
4
4
+
builderDefsPackage
5
5
+
(a :
6
6
+
let
7
7
+
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
8
8
+
[];
9
9
+
10
10
+
buildInputs = map (n: builtins.getAttr n x)
11
11
+
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
12
12
+
sourceInfo = rec {
13
13
+
baseName="iotop";
14
14
+
version="0.4.1";
15
15
+
name="${baseName}-${version}";
16
16
+
url="http://guichaz.free.fr/${baseName}/files/${name}.tar.bz2";
17
17
+
hash="1dfvw3khr2rvqllvs9wad9ca3ld4i7szqf0ibq87rn36ickrf3ll";
18
18
+
};
19
19
+
in
20
20
+
rec {
21
21
+
src = a.fetchurl {
22
22
+
url = sourceInfo.url;
23
23
+
sha256 = sourceInfo.hash;
24
24
+
};
25
25
+
26
26
+
inherit (sourceInfo) name version;
27
27
+
inherit buildInputs;
28
28
+
29
29
+
phaseNames = ["installPythonPackage" "wrapBinContentsPython"];
30
30
+
31
31
+
meta = {
32
32
+
description = "A tool to find out the processes doing the most IO";
33
33
+
maintainers = with a.lib.maintainers;
34
34
+
[
35
35
+
raskin
36
36
+
];
37
37
+
platforms = with a.lib.platforms;
38
38
+
linux;
39
39
+
};
40
40
+
passthru = {
41
41
+
updateInfo = {
42
42
+
downloadPage = "http://guichaz.free.fr/iotop/";
43
43
+
};
44
44
+
};
45
45
+
}) x
46
46
+
+4
pkgs/top-level/all-packages.nix
···
4508
4508
4509
4509
ifplugd = callPackage ../os-specific/linux/ifplugd { };
4510
4510
4511
4511
+
iotop = callPackage ../os-specific/linux/iotop {
4512
4512
+
python = pythonFull;
4513
4513
+
};
4514
4514
+
4511
4515
iproute = callPackage ../os-specific/linux/iproute { };
4512
4516
4513
4517
iputils = (