summary refs log tree commit diff
path: root/pkgs/os-specific/linux/iomelt/default.nix
diff options
context:
space:
mode:
authorCharles Strahan <charles.c.strahan@gmail.com>2014-06-29 23:57:55 -0400
committerCharles Strahan <charles.c.strahan@gmail.com>2014-06-30 23:50:38 -0400
commit25b53cddb4020a793f1d8340ce26c97a0ae4b87a (patch)
treecb5d7518fd8db508648cfd8ffe73d8e9cfe282de /pkgs/os-specific/linux/iomelt/default.nix
parentf8e984b9b24f05891ddef1309d57bc3071ed1c4c (diff)
downloadnixpkgs-25b53cddb4020a793f1d8340ce26c97a0ae4b87a.tar
nixpkgs-25b53cddb4020a793f1d8340ce26c97a0ae4b87a.tar.gz
nixpkgs-25b53cddb4020a793f1d8340ce26c97a0ae4b87a.tar.bz2
nixpkgs-25b53cddb4020a793f1d8340ce26c97a0ae4b87a.tar.lz
nixpkgs-25b53cddb4020a793f1d8340ce26c97a0ae4b87a.tar.xz
nixpkgs-25b53cddb4020a793f1d8340ce26c97a0ae4b87a.tar.zst
nixpkgs-25b53cddb4020a793f1d8340ce26c97a0ae4b87a.zip
iomelt: new package
This adds the IOMelt pacakge, "a simple yet effective way to benchmark disk IO
in Linux systems."
Diffstat (limited to 'pkgs/os-specific/linux/iomelt/default.nix')
-rw-r--r--pkgs/os-specific/linux/iomelt/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/iomelt/default.nix b/pkgs/os-specific/linux/iomelt/default.nix
new file mode 100644
index 00000000000..df267d304c1
--- /dev/null
+++ b/pkgs/os-specific/linux/iomelt/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, lib, fetchurl }:
+
+let version = "0.7";
+in stdenv.mkDerivation {
+  name = "iomelt-${version}";
+  src = fetchurl {
+    url = "http://iomelt.com/s/iomelt-${version}.tar.gz";
+    sha256 = "1jhrdm5b7f1bcbrdwcc4yzg26790jxl4d2ndqiwd9brl2g5537im";
+  };
+
+  preBuild = ''
+    ensureDir $out/bin
+    ensureDir $out/share/man/man1
+
+    substituteInPlace Makefile \
+      --replace /usr $out
+  '';
+
+  meta = with lib; {
+    description = "A simple yet effective way to benchmark disk IO in Linux systems";
+    homepage    = http://www.iomelt.com;
+    maintainers = with maintainers; [ cstrahan ];
+    platforms   = platforms.linux ++ platforms.darwin;
+  };
+}