git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #24050 from shanemikel/package_htmldoc

htmldoc: add darwin support

commit52c6d6770ff4f1ef57c3ae7f2a3f32a805f61267 authorDaiderd Jordan <daiderd@gmail.com> dateSun 19 Mar 2017, 22:39 (10 years ago) parent6ceabb6fa9400f
4 files changed+39−20
lib/maintainers.nix+1 pkgs/applications/misc/htmldoc/default.nix−16 pkgs/tools/typesetting/htmldoc/default.nix+34 pkgs/top-level/all-packages.nix+4−4
lib/maintainers.nix+1
@@ -456,6 +456,7 @@
456456 scolobb = "Sergiu Ivanov <sivanov@colimite.fr>";
457457 sepi = "Raffael Mancini <raffael@mancini.lu>";
458458 seppeljordan = "Sebastian Jordan <sebastian.jordan.mail@googlemail.com>";
459+ shanemikel = "Shane Pearlman <shanemikel1@gmail.com>";
459460 sheenobu = "Sheena Artrip <sheena.artrip@gmail.com>";
460461 sheganinans = "Aistis Raulinaitis <sheganinans@gmail.com>";
461462 shell = "Shell Turner <cam.turn@gmail.com>";
pkgs/applications/misc/htmldoc/default.nixdeleted−16
@@ -1,16 +0,0 @@
1−{ stdenv, fetchurl, fltk, openssl, libpng, libjpeg }:
2−stdenv.mkDerivation rec {
3− name = "htmldoc-1.8.27";
4− src = fetchurl {
5− url = http://ftp.easysw.com/pub/htmldoc/1.8.27/htmldoc-1.8.27-source.tar.bz2;
6− sha256 = "04wnxgx6fxdxwiy9vbawdibngwf55mi01hjrr5fkfs22fcix5zw9";
7− };
8− buildInputs = [ fltk openssl libpng libjpeg ];
9− meta = {
10− homepage = http://www.htmldoc.org/;
11− description = "Converts HTML files to indexed HTML, PS or PDF";
12− license = stdenv.lib.licenses.gpl2;
13− maintainers = with stdenv.lib.maintainers; [ viric ];
14− platforms = with stdenv.lib.platforms; linux;
15− };
16−}
pkgs/tools/typesetting/htmldoc/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ stdenv, fetchurl
2+
3+, SystemConfiguration ? null, Foundation ? null
4+}:
5+
6+assert stdenv.isDarwin -> SystemConfiguration != null
7+ && Foundation != null;
8+
9+stdenv.mkDerivation rec {
10+ version = "1.8.29";
11+ name = "htmldoc-${version}";
12+ src = fetchurl {
13+ url = "https://github.com/michaelrsweet/htmldoc/releases/download"
14+ + "/release-${version}/htmldoc-${version}-source.tar.gz";
15+ sha256 = "15x0xdf487j4i4gfap5yr83airxnbp2v4lxaz79a4s3iirrq39p0";
16+ };
17+ buildInputs = with stdenv;
18+ lib.optional isDarwin SystemConfiguration
19+ ++ lib.optional isDarwin Foundation;
20+
21+ meta = with stdenv.lib; {
22+ description = "Converts HTML files to PostScript and PDF";
23+ homepage = https://michaelrsweet.github.io/htmldoc;
24+ license = licenses.gpl2;
25+ maintainers = with maintainers; [ viric shanemikel ];
26+ platforms = with platforms; linux ++ darwin;
27+
28+ longDescription = ''
29+ HTMLDOC is a program that reads HTML source files or web pages and
30+ generates corresponding HTML, PostScript, or PDF files with an optional
31+ table of contents.
32+ '';
33+ };
34+}
pkgs/top-level/all-packages.nix+4−4
@@ -4381,6 +4381,10 @@ with pkgs;
43814381
43824382 html-xml-utils = callPackage ../tools/text/xml/html-xml-utils { };
43834383
4384+ htmldoc = callPackage ../tools/typesetting/htmldoc {
4385+ inherit (darwin.apple_sdk.frameworks) SystemConfiguration Foundation;
4386+ };
4387+
43844388 rcm = callPackage ../tools/misc/rcm {};
43854389
43864390 tftp-hpa = callPackage ../tools/networking/tftp-hpa {};
@@ -13980,10 +13984,6 @@ with pkgs;
1398013984
1398113985 ht = callPackage ../applications/editors/ht { };
1398213986
13983− htmldoc = callPackage ../applications/misc/htmldoc {
13984− fltk = fltk13;
13985− };
13986−
1398713987 hugin = callPackage ../applications/graphics/hugin { };
1398813988
1398913989 hugo = callPackage ../applications/misc/hugo { };