Merge pull request #31020 from peterhoeg/p/mht
mht2htm: init at 1.8.1.35
This commit is contained in:
commit
369056394f
43
pkgs/tools/misc/mht2htm/default.nix
Normal file
43
pkgs/tools/misc/mht2htm/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ stdenv, fetchurl, unzip, fpc, lazarus }:
|
||||||
|
|
||||||
|
let
|
||||||
|
date = "07.apr.2016";
|
||||||
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "mht2mht-${version}";
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Convert .mht files to .html";
|
||||||
|
homepage = http://pgm.bpalanka.com/mht2htm.html;
|
||||||
|
license = licenses.gpl3;
|
||||||
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -152,6 +152,8 @@ with pkgs;
|
|||||||
|
|
||||||
packer = callPackage ../development/tools/packer { };
|
packer = callPackage ../development/tools/packer { };
|
||||||
|
|
||||||
|
mht2htm = callPackage ../tools/misc/mht2htm { };
|
||||||
|
|
||||||
fetchpatch = callPackage ../build-support/fetchpatch { };
|
fetchpatch = callPackage ../build-support/fetchpatch { };
|
||||||
|
|
||||||
fetchs3 = callPackage ../build-support/fetchs3 { };
|
fetchs3 = callPackage ../build-support/fetchs3 { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user