@@ -1,29 +1,23 @@
1−{ lib, stdenv, fetchurl
2−
3−, SystemConfiguration ? null, Foundation ? null
4−}:
5−
6−assert stdenv.isDarwin -> SystemConfiguration != null
7− && Foundation != null;
1+{ lib, stdenv, fetchFromGitHub, zlib, libpng, SystemConfiguration, Foundation }:
82
93stdenv.mkDerivation rec {
10− version = "1.8.29";
114 pname = "htmldoc";
12− src = fetchurl {
13− url = "https://github.com/michaelrsweet/htmldoc/releases/download"
14− + "/release-${version}/htmldoc-${version}-source.tar.gz";
15− sha256 = "15x0xdf487j4i4gfap5yr83airxnbp2v4lxaz79a4s3iirrq39p0";
5+ version = "1.9.11";
6+ src = fetchFromGitHub {
7+ owner = "michaelrsweet";
8+ repo = "htmldoc";
9+ rev = "v${version}";
10+ sha256 = "0660829zjfdm6vzx14z7gvsfipsb7h0z74gbkyp2ncg3g2432s4n";
1611 };
17− buildInputs = with stdenv;
18− lib.optional isDarwin SystemConfiguration
19− ++ lib.optional isDarwin Foundation;
12+ buildInputs = [ zlib libpng ]
13+ ++ lib.optionals stdenv.isDarwin [ Foundation SystemConfiguration ];
2014
2115 meta = with lib; {
2216 description = "Converts HTML files to PostScript and PDF";
2317 homepage = "https://michaelrsweet.github.io/htmldoc";
24− license = licenses.gpl2;
18+ license = licenses.gpl2Only;
2519 maintainers = with maintainers; [ shanemikel ];
26− platforms = with platforms; linux ++ darwin;
20+ platforms = platforms.unix;
2721
2822 longDescription = ''
2923 HTMLDOC is a program that reads HTML source files or web pages and