Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters