Skip to content

Commit

Permalink
mht2htm: init at 1.8.1.35
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Oct 31, 2017
1 parent 66b63d2 commit 728e12d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pkgs/tools/misc/mht2htm/default.nix
@@ -0,0 +1,40 @@
{ stdenv, fetchurl, unzip, fpc, lazarus }:

let
date = "07.apr.2016";

in stdenv.mkDerivation rec {
name = "mht2mht-${version}";
version = "1.8.1.35";

src = fetchurl {
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 mht2htmcl $out/bin/mth2htmcl
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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -163,6 +163,8 @@ with pkgs;

packer = callPackage ../development/tools/packer { };

mht2htm = callPackage ../tools/misc/mht2htm { };

fetchpatch = callPackage ../build-support/fetchpatch { };

fetchs3 = callPackage ../build-support/fetchs3 { };
Expand Down

0 comments on commit 728e12d

Please sign in to comment.