about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/iomelt/default.nix
blob: 331c9020a48041143ed4e7500fc3963061d63459 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ fetchurl
, lib
, stdenv
}:

let version = "0.7";
in stdenv.mkDerivation {
  inherit version;
  pname = "iomelt";
  src = fetchurl {
    url = "https://web.archive.org/web/20180816072405if_/http://iomelt.com/s/iomelt-${version}.tar.gz";
    sha256 = "1jhrdm5b7f1bcbrdwcc4yzg26790jxl4d2ndqiwd9brl2g5537im";
  };

  preBuild = ''
    install -d $out/{bin,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 = "https://github.com/camposr/iomelt";
    maintainers = with maintainers; [ raspher ];
    license = licenses.artistic2;
    platforms = platforms.linux;
  };
}