iomelt: fix broken urls, reformat

This commit is contained in:
raspher 2024-02-18 18:18:39 +01:00 committed by raspher
parent c45e6f9dac
commit 7a651af136

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