summary refs log tree commit diff
path: root/pkgs/os-specific/linux/iotop/default.nix
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2010-11-23 07:46:18 +0000
committerMichael Raskin <7c6f434c@mail.ru>2010-11-23 07:46:18 +0000
commit6162fffede124bb74fcd4d53726e404e5308b069 (patch)
treec59bbc360667a0f4b8ca9bb18080c2c7eb77c059 /pkgs/os-specific/linux/iotop/default.nix
parent8cd20e6f6180b347cbef20a97e4fe81f662775a6 (diff)
downloadnixlib-6162fffede124bb74fcd4d53726e404e5308b069.tar
nixlib-6162fffede124bb74fcd4d53726e404e5308b069.tar.gz
nixlib-6162fffede124bb74fcd4d53726e404e5308b069.tar.bz2
nixlib-6162fffede124bb74fcd4d53726e404e5308b069.tar.lz
nixlib-6162fffede124bb74fcd4d53726e404e5308b069.tar.xz
nixlib-6162fffede124bb74fcd4d53726e404e5308b069.tar.zst
nixlib-6162fffede124bb74fcd4d53726e404e5308b069.zip
Adding IOtop
svn path=/nixpkgs/trunk/; revision=24818
Diffstat (limited to 'pkgs/os-specific/linux/iotop/default.nix')
-rw-r--r--pkgs/os-specific/linux/iotop/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/iotop/default.nix b/pkgs/os-specific/linux/iotop/default.nix
new file mode 100644
index 000000000000..54a6cf8e457b
--- /dev/null
+++ b/pkgs/os-specific/linux/iotop/default.nix
@@ -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
+