diff options
author | Shane Pearlman <shanemikel1@gmail.com> | 2017-03-18 21:44:55 -0700 |
---|---|---|
committer | Shane Pearlman <shanemikel1@gmail.com> | 2017-03-18 21:44:55 -0700 |
commit | 63bd364cf9bf8ce24a2b0057e9b89b1b58e4b725 (patch) | |
tree | 07b25ed5c0a2abf99143a8f195e64e3101fd9603 /pkgs/tools | |
parent | 54b7c3b63fd46f66487f4b29fb4b42d0c6353118 (diff) | |
download | nixpkgs-63bd364cf9bf8ce24a2b0057e9b89b1b58e4b725.tar nixpkgs-63bd364cf9bf8ce24a2b0057e9b89b1b58e4b725.tar.gz nixpkgs-63bd364cf9bf8ce24a2b0057e9b89b1b58e4b725.tar.bz2 nixpkgs-63bd364cf9bf8ce24a2b0057e9b89b1b58e4b725.tar.lz nixpkgs-63bd364cf9bf8ce24a2b0057e9b89b1b58e4b725.tar.xz nixpkgs-63bd364cf9bf8ce24a2b0057e9b89b1b58e4b725.tar.zst nixpkgs-63bd364cf9bf8ce24a2b0057e9b89b1b58e4b725.zip |
htmldoc: add darwin support
I also added a long description and updated the homepage to point to the author’s new github.io site.
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/typesetting/htmldoc/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
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. + ''; + }; +} |