1{ stdenv, lib, fetchurl }:
2
3let version = "0.7";
4in stdenv.mkDerivation {
5 pname = "iomelt";
6 inherit version;
7 src = fetchurl {
8 url = "http://iomelt.com/s/iomelt-${version}.tar.gz";
9 sha256 = "1jhrdm5b7f1bcbrdwcc4yzg26790jxl4d2ndqiwd9brl2g5537im";
10 };
11
12 preBuild = ''
13 mkdir -p $out/bin
14 mkdir -p $out/share/man/man1
15
16 substituteInPlace Makefile \
17 --replace /usr $out
18 '';
19
20 meta = with lib; {
21 description = "A simple yet effective way to benchmark disk IO in Linux systems";
22 homepage = "http://www.iomelt.com";
23 maintainers = with maintainers; [ cstrahan ];
24 license = licenses.artistic2;
25 platforms = platforms.linux;
26 };
27}