1{ stdenv, fetchurl, gettext }:
2
3stdenv.mkDerivation rec {
4 name = "enscript-1.6.6";
5
6 src = fetchurl {
7 url = "mirror://gnu/enscript/${name}.tar.gz";
8 sha256 = "1fy0ymvzrrvs889zanxcaxjfcxarm2d3k43c9frmbl1ld7dblmkd";
9 };
10
11 preBuild =
12 ''
13 # Fix building on Darwin with GCC.
14 substituteInPlace compat/regex.c --replace \
15 __private_extern__ '__attribute__ ((visibility ("hidden")))'
16 '';
17
18 buildInputs = [ gettext ];
19
20 doCheck = true;
21
22 meta = {
23 description = "Converter from ASCII to PostScript, HTML, or RTF";
24
25 longDescription =
26 '' GNU Enscript converts ASCII files to PostScript, HTML, or RTF and
27 stores generated output to a file or sends it directly to the
28 printer. It includes features for `pretty-printing'
29 (language-sensitive code highlighting) in several programming
30 languages.
31
32 Enscript can be easily extended to handle different output media and
33 it has many options that can be used to customize printouts.
34 '';
35
36 license = stdenv.lib.licenses.gpl3Plus;
37
38 homepage = http://www.gnu.org/software/enscript/;
39
40 maintainers = [ ];
41 platforms = stdenv.lib.platforms.all;
42 };
43}