NixOS/nixpkgs — pull request #1003 by bjornfor (2013-09-23 19:58:31+00:00)
Title: asciidoc: add missing dependency on sourceHighlight/highlight/pygments

Without this asciidoc will fail when it tries to highlight source code
listings. It increases the closure size from 255 MiB to 438 MiB though
(mostly because of boost).

Discussion:
I'm unsure of what is the best way to handle this dependency. I see a few options:

1. Leave as is (i.e. don't merge this). Currently you get an error message if trying to highlight source code listings, and you have to install one or more of the above dependencies yourself.
2. Add this behind an "enableSourceFilter" parameter. If true, install dependencies, else behave as today.
3. Accept that the source highlight filter is a part of asciidoc (it comes with the source archive), and add the dependencies unconditionally (like this pull does)

Comments?