htmldoc: 1.8.29 -> 1.9.11 (#119226)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
LeSuisse 2021-04-15 02:37:46 +02:00 committed by GitHub
parent 2f6a9bb297
commit dcdf30a78a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,29 +1,23 @@
{ lib, stdenv, fetchurl
, SystemConfiguration ? null, Foundation ? null
}:
assert stdenv.isDarwin -> SystemConfiguration != null
&& Foundation != null;
{ lib, stdenv, fetchFromGitHub, zlib, libpng, SystemConfiguration, Foundation }:
stdenv.mkDerivation rec {
version = "1.8.29";
pname = "htmldoc";
src = fetchurl {
url = "https://github.com/michaelrsweet/htmldoc/releases/download"
+ "/release-${version}/htmldoc-${version}-source.tar.gz";
sha256 = "15x0xdf487j4i4gfap5yr83airxnbp2v4lxaz79a4s3iirrq39p0";
version = "1.9.11";
src = fetchFromGitHub {
owner = "michaelrsweet";
repo = "htmldoc";
rev = "v${version}";
sha256 = "0660829zjfdm6vzx14z7gvsfipsb7h0z74gbkyp2ncg3g2432s4n";
};
buildInputs = with stdenv;
lib.optional isDarwin SystemConfiguration
++ lib.optional isDarwin Foundation;
buildInputs = [ zlib libpng ]
++ lib.optionals stdenv.isDarwin [ Foundation SystemConfiguration ];
meta = with lib; {
description = "Converts HTML files to PostScript and PDF";
homepage = "https://michaelrsweet.github.io/htmldoc";
license = licenses.gpl2;
license = licenses.gpl2Only;
maintainers = with maintainers; [ shanemikel ];
platforms = with platforms; linux ++ darwin;
platforms = platforms.unix;
longDescription = ''
HTMLDOC is a program that reads HTML source files or web pages and