From 63bd364cf9bf8ce24a2b0057e9b89b1b58e4b725 Mon Sep 17 00:00:00 2001 From: Shane Pearlman Date: Sat, 18 Mar 2017 21:44:55 -0700 Subject: htmldoc: add darwin support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I also added a long description and updated the homepage to point to the author’s new github.io site. --- pkgs/tools/typesetting/htmldoc/default.nix | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/tools/typesetting/htmldoc/default.nix (limited to 'pkgs/tools') diff --git a/pkgs/tools/typesetting/htmldoc/default.nix b/pkgs/tools/typesetting/htmldoc/default.nix new file mode 100644 index 00000000000..74abb8e60c6 --- /dev/null +++ b/pkgs/tools/typesetting/htmldoc/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl + +, SystemConfiguration ? null, Foundation ? null +}: + +assert stdenv.isDarwin -> SystemConfiguration != null + && Foundation != null; + +stdenv.mkDerivation { + name = "htmldoc-1.8.29"; + src = fetchurl { + url = "https://github.com/michaelrsweet/htmldoc/releases/download" + + "/release-1.8.29/htmldoc-1.8.29-source.tar.gz"; + md5 = "14d32bd772e2bc6af7b9b2233724c3ec"; + }; + buildInputs = + stdenv.lib.ifEnable stdenv.isDarwin [SystemConfiguration Foundation]; + + meta = with stdenv.lib; { + description = "Converts HTML files to PostScript and PDF"; + homepage = https://michaelrsweet.github.io/htmldoc; + license = licenses.gpl2; + maintainers = with maintainers; [ viric shanemikel ]; + platforms = with platforms; linux ++ darwin; + + 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. + ''; + }; +} -- cgit 1.4.1