aboutsummaryrefslogtreecommitdiff
path: root/pkgs/mht2htmcl/package.nix
diff options
context:
space:
mode:
authorSimon Garrelou <simon.garrelou@airbus.com>2024-02-16 14:15:12 +0100
committerSimon Garrelou <simon.garrelou@airbus.com>2024-02-16 14:15:12 +0100
commite9ae22e7d9fc291786fff66cce585356be6132f8 (patch)
tree0b10f7801f3a3fe826c5ad88ba75893f0641be23 /pkgs/mht2htmcl/package.nix
parentb06b887210d90edeb064a12db9e0e99ceff1d294 (diff)
downloadnixpkgs-e9ae22e7d9fc291786fff66cce585356be6132f8.tar.gz
nixpkgs-e9ae22e7d9fc291786fff66cce585356be6132f8.zip
Add mht2htmcl
Diffstat (limited to 'pkgs/mht2htmcl/package.nix')
-rw-r--r--pkgs/mht2htmcl/package.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/mht2htmcl/package.nix b/pkgs/mht2htmcl/package.nix
new file mode 100644
index 0000000..b9ad176
--- /dev/null
+++ b/pkgs/mht2htmcl/package.nix
@@ -0,0 +1,40 @@
1{ stdenv
2, fetchzip
3, lazarus
4, fpc
5}:
6stdenv.mkDerivation {
7 pname = "mht2htmcl";
8 version = "1.8.1.35";
9
10 src = fetchzip {
11 # url = "https://sourceforge.net/settings/mirror_choices?projectname=mht2htm&filename=mht2htm/1.8.1%20%2805.apr.2016%29/mht2htmcl-1.8.1.35_07.apr.2016.source.zip&selected=master";
12 url = "mirror://sourceforge/mht2htm/mht2htm/1.8.1%20%2805.apr.2016%29/mht2htmcl-1.8.1.35_07.apr.2016.source.zip";
13 hash = "sha256-XtUuCR7j6vE6DoVy1crQAjBj6RpG8yl3gOVKgxPQhmM=";
14 stripRoot = false;
15 };
16
17 nativeBuildInputs = [ lazarus fpc ];
18
19 patches = [
20 ./01-fix-current-lazarus-compat.patch
21 ];
22
23 buildPhase = ''
24 runHook preBuild
25
26 lazbuild --lazarusdir=${lazarus}/share/lazarus \
27 mht2htmcl.lpi
28
29 runHook postBuild
30 '';
31
32 installPhase = ''
33 runHook preInstall
34
35 mkdir -p $out/bin
36 cp mht2htmcl $out/bin/
37
38 runHook postInstall
39 '';
40}