2024-04-21 15:54:59 +00:00
|
|
|
{ fetchurl
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let version = "0.7";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "iomelt";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2024-04-21 15:54:59 +00:00
|
|
|
url = "https://web.archive.org/web/20180816072405if_/http://iomelt.com/s/iomelt-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1jhrdm5b7f1bcbrdwcc4yzg26790jxl4d2ndqiwd9brl2g5537im";
|
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
install -d $out/{bin,share/man/man1}
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace /usr $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple yet effective way to benchmark disk IO in Linux systems";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/camposr/iomelt";
|
|
|
|
maintainers = with maintainers; [ raspher ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.artistic2;
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|