blob: cd48a3fd8765aeebc3fb1bd106605584994419ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ lib, stdenv, fetchFromGitHub, zlib, libpng, libjpeg, SystemConfiguration, Foundation, pkg-config }:
stdenv.mkDerivation rec {
pname = "htmldoc";
version = "1.9.14";
src = fetchFromGitHub {
owner = "michaelrsweet";
repo = "htmldoc";
rev = "v${version}";
sha256 = "sha256-mPykntRKu2NrIIGYGNCATUC3k/dvRmVkjHyhBeFfQ2U=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ zlib libpng libjpeg ]
++ lib.optionals stdenv.isDarwin [ Foundation SystemConfiguration ];
meta = with lib; {
description = "Converts HTML files to PostScript and PDF";
homepage = "https://michaelrsweet.github.io/htmldoc";
changelog = "https://github.com/michaelrsweet/htmldoc/releases/tag/v${version}";
license = licenses.gpl2Only;
maintainers = with maintainers; [ shanemikel ];
platforms = platforms.unix;
longDescription = ''
HTMLDOC is a program that reads HTML source files or web pages and
generates corresponding HTML, PostScript, or PDF files with an optional
table of contents.
'';
};
}
|