2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv, fetchurl, gettext }:
|
2010-01-26 15:49:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-27 23:01:12 +02:00
|
|
|
pname = "enscript";
|
|
|
|
version = "1.6.6";
|
2004-06-03 19:16:16 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-27 23:01:12 +02:00
|
|
|
url = "mirror://gnu/enscript/enscript-${version}.tar.gz";
|
2013-12-15 11:35:47 +01:00
|
|
|
sha256 = "1fy0ymvzrrvs889zanxcaxjfcxarm2d3k43c9frmbl1ld7dblmkd";
|
2010-01-26 15:49:00 +01:00
|
|
|
};
|
|
|
|
|
2014-07-23 11:25:38 +02:00
|
|
|
preBuild =
|
|
|
|
''
|
|
|
|
# Fix building on Darwin with GCC.
|
|
|
|
substituteInPlace compat/regex.c --replace \
|
|
|
|
__private_extern__ '__attribute__ ((visibility ("hidden")))'
|
|
|
|
'';
|
|
|
|
|
2010-01-26 15:49:00 +01:00
|
|
|
buildInputs = [ gettext ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Converter from ASCII to PostScript, HTML, or RTF";
|
2010-01-26 15:49:00 +01:00
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' GNU Enscript converts ASCII files to PostScript, HTML, or RTF and
|
|
|
|
stores generated output to a file or sends it directly to the
|
|
|
|
printer. It includes features for `pretty-printing'
|
|
|
|
(language-sensitive code highlighting) in several programming
|
|
|
|
languages.
|
|
|
|
|
|
|
|
Enscript can be easily extended to handle different output media and
|
|
|
|
it has many options that can be used to customize printouts.
|
|
|
|
'';
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2010-01-26 15:49:00 +01:00
|
|
|
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.gnu.org/software/enscript/";
|
2010-01-26 15:49:00 +01:00
|
|
|
|
2015-01-13 22:33:24 +01:00
|
|
|
maintainers = [ ];
|
2021-01-15 10:19:50 +01:00
|
|
|
platforms = lib.platforms.all;
|
2004-06-03 19:16:16 +02:00
|
|
|
};
|
|
|
|
}
|