lol
1{ stdenv, fetchurl, unzip, fpc, lazarus }:
2
3let
4 date = "07.apr.2016";
5
6in stdenv.mkDerivation rec {
7 name = "mht2mht-${version}";
8 version = "1.8.1.35";
9
10 src = fetchurl {
11 # there is a disconnect between the directory name date and file name date
12 # you should verify if that is still then case when the next version is released
13 url = "mirror://sourceforge/mht2htm/mht2htm/1.8.1%20%2805.apr.2016%29/mht2htmcl-${version}_${date}.source.zip";
14 sha256 = "16r6zkihp84yqllp2hyaf0nvymdn9ji3g30mc5scfwycdfanja6f";
15 };
16
17 sourceRoot = ".";
18
19 buildInputs = [ fpc lazarus ];
20
21 nativeBuildInputs = [ unzip ];
22
23 buildPhase = ''
24 runHook preBuild
25 lazbuild --lazarusdir=${lazarus}/share/lazarus mht2htmcl.lpi
26 runHook postBuild
27 '';
28
29 installPhase = ''
30 runHook preInstall
31 install -Dm755 -t $out/bin mht2htmcl
32 install -Dm644 -t $out/share/doc/mht2htm CHANGELOG COPYING README
33 runHook postInstall
34 '';
35
36 meta = with stdenv.lib; {
37 description = "Convert .mht files to .html";
38 homepage = http://pgm.bpalanka.com/mht2htm.html;
39 license = licenses.gpl3;
40 maintainers = with maintainers; [ peterhoeg ];
41 platforms = platforms.all;
42 };
43}