nixpkgs/pkgs/tools/typesetting/htmldoc/default.nix
2021-05-22 09:56:56 +02:00

32 lines
1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, zlib, libpng, libjpeg, SystemConfiguration, Foundation, pkg-config }:
stdenv.mkDerivation rec {
pname = "htmldoc";
version = "1.9.12";
src = fetchFromGitHub {
owner = "michaelrsweet";
repo = "htmldoc";
rev = "v${version}";
sha256 = "1dqima0g3j301wwzjxdhzk5pvfj724rl615gf8ssxxajfnid1gl0";
};
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.
'';
};
}