2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, fpc, lazarus }:
|
2017-10-30 08:57:54 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
date = "07.apr.2016";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mht2mht";
|
2017-10-30 08:57:54 +00:00
|
|
|
version = "1.8.1.35";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
# there is a disconnect between the directory name date and file name date
|
|
|
|
# you should verify if that is still then case when the next version is released
|
|
|
|
url = "mirror://sourceforge/mht2htm/mht2htm/1.8.1%20%2805.apr.2016%29/mht2htmcl-${version}_${date}.source.zip";
|
|
|
|
sha256 = "16r6zkihp84yqllp2hyaf0nvymdn9ji3g30mc5scfwycdfanja6f";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
buildInputs = [ fpc lazarus ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
lazbuild --lazarusdir=${lazarus}/share/lazarus mht2htmcl.lpi
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dm755 -t $out/bin mht2htmcl
|
|
|
|
install -Dm644 -t $out/share/doc/mht2htm CHANGELOG COPYING README
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-30 08:57:54 +00:00
|
|
|
description = "Convert .mht files to .html";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://pgm.bpalanka.com/mht2htm.html";
|
2017-10-30 08:57:54 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.all;
|
2018-04-10 23:17:23 +00:00
|
|
|
broken = true; # 2018-04-11
|
2017-10-30 08:57:54 +00:00
|
|
|
};
|
|
|
|
}
|