depot/third_party/nixpkgs/pkgs/os-specific/linux/iomelt/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

29 lines
717 B
Nix

{ 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 = "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;
};
}