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