summary refs log tree commit diff
path: root/pkgs/development/tools/misc/iozone
diff options
context:
space:
mode:
authorSvein Ove Aas <sveina@gmail.com>2016-01-14 15:18:12 +0000
committerVladimír Čunát <vcunat@gmail.com>2016-01-15 09:47:57 +0100
commita28032ed589e16b9779266bed3fafe8a7163f9c7 (patch)
treef28d4e3e4ba304fa455523fabc3b760aa1cd40b6 /pkgs/development/tools/misc/iozone
parent6987f87832d28f51f9a519c6daaf709b85f058fc (diff)
downloadnixpkgs-a28032ed589e16b9779266bed3fafe8a7163f9c7.tar
nixpkgs-a28032ed589e16b9779266bed3fafe8a7163f9c7.tar.gz
nixpkgs-a28032ed589e16b9779266bed3fafe8a7163f9c7.tar.bz2
nixpkgs-a28032ed589e16b9779266bed3fafe8a7163f9c7.tar.lz
nixpkgs-a28032ed589e16b9779266bed3fafe8a7163f9c7.tar.xz
nixpkgs-a28032ed589e16b9779266bed3fafe8a7163f9c7.tar.zst
nixpkgs-a28032ed589e16b9779266bed3fafe8a7163f9c7.zip
iozone: init at 3.434 (close #12387)
vcunat amended some $out/share/ install paths.
Diffstat (limited to 'pkgs/development/tools/misc/iozone')
-rw-r--r--pkgs/development/tools/misc/iozone/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/iozone/default.nix b/pkgs/development/tools/misc/iozone/default.nix
new file mode 100644
index 00000000000..d51a15bbee9
--- /dev/null
+++ b/pkgs/development/tools/misc/iozone/default.nix
@@ -0,0 +1,47 @@
+{ stdenv, fetchurl }:
+
+let
+  target = if stdenv.system == "i686-linux" then
+    "linux"
+  else if stdenv.system == "x86_64-linux" then
+    "linux-AMD64"
+  else if stdenv.system == "x86_64-darwin" then
+    "macosx"
+  else abort "Platform ${stdenv.system} not yet supported.";
+in
+
+stdenv.mkDerivation rec {
+  name = "iozone-3.434";
+
+  src = fetchurl {
+    url = http://www.iozone.org/src/current/iozone3_434.tar;
+    sha256 = "0aj63mlb91aivz3z71zn8nbwci1pi18qk8zc65dm19cknffqsf1c";
+  };
+
+  license = fetchurl {
+    url = http://www.iozone.org/docs/Iozone_License.txt;
+    sha256 = "1309sl1rqm8p9gll3z8zfygr2pmbcvzw5byf5ba8y12avk735zrv";
+  };
+
+  preBuild = "pushd src/current";
+  postBuild = "popd";
+
+  buildFlags = target;
+
+  installPhase = ''
+    mkdir -p $out/{man,bin,doc}
+    install docs/iozone.1 $out/man/
+    install docs/Iozone_ps.gz $out/doc/
+    install -s src/current/{iozone,fileop,pit_server} $out/bin/
+    # License copy is mandated by the license, but it's not in the tarball.
+    install ${license} $out/doc/Iozone_License.txt
+  '';
+
+  meta = {
+    description = "IOzone Filesystem Benchmark";
+    homepage    = http://www.iozone.org/;
+    license     = stdenv.lib.licenses.unfreeRedistributable;
+    platforms   = ["i686-linux" "x86_64-linux" "x86_64-darwin"];
+    maintainers = [ stdenv.lib.maintainers.Baughn ];
+  };
+}