tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
mht2htm: init at 1.8.1.35
Peter Hoeg
8 years ago
12da0b5f
66b63d2f
+45
2 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
mht2htm
default.nix
top-level
all-packages.nix
+43
pkgs/tools/misc/mht2htm/default.nix
···
1
1
+
{ stdenv, fetchurl, unzip, fpc, lazarus }:
2
2
+
3
3
+
let
4
4
+
date = "07.apr.2016";
5
5
+
6
6
+
in stdenv.mkDerivation rec {
7
7
+
name = "mht2mht-${version}";
8
8
+
version = "1.8.1.35";
9
9
+
10
10
+
src = fetchurl {
11
11
+
# there is a disconnect between the directory name date and file name date
12
12
+
# you should verify if that is still then case when the next version is released
13
13
+
url = "mirror://sourceforge/mht2htm/mht2htm/1.8.1%20%2805.apr.2016%29/mht2htmcl-${version}_${date}.source.zip";
14
14
+
sha256 = "16r6zkihp84yqllp2hyaf0nvymdn9ji3g30mc5scfwycdfanja6f";
15
15
+
};
16
16
+
17
17
+
sourceRoot = ".";
18
18
+
19
19
+
buildInputs = [ fpc lazarus ];
20
20
+
21
21
+
nativeBuildInputs = [ unzip ];
22
22
+
23
23
+
buildPhase = ''
24
24
+
runHook preBuild
25
25
+
lazbuild --lazarusdir=${lazarus}/share/lazarus mht2htmcl.lpi
26
26
+
runHook postBuild
27
27
+
'';
28
28
+
29
29
+
installPhase = ''
30
30
+
runHook preInstall
31
31
+
install -Dm755 -t $out/bin mht2htmcl
32
32
+
install -Dm644 -t $out/share/doc/mht2htm CHANGELOG COPYING README
33
33
+
runHook postInstall
34
34
+
'';
35
35
+
36
36
+
meta = with stdenv.lib; {
37
37
+
description = "Convert .mht files to .html";
38
38
+
homepage = http://pgm.bpalanka.com/mht2htm.html;
39
39
+
license = licenses.gpl3;
40
40
+
maintainers = with maintainers; [ peterhoeg ];
41
41
+
platforms = platforms.all;
42
42
+
};
43
43
+
}
+2
pkgs/top-level/all-packages.nix
···
163
163
164
164
packer = callPackage ../development/tools/packer { };
165
165
166
166
+
mht2htm = callPackage ../tools/misc/mht2htm { };
167
167
+
166
168
fetchpatch = callPackage ../build-support/fetchpatch { };
167
169
168
170
fetchs3 = callPackage ../build-support/fetchs3 { };