nixpkgs/pkgs/by-name/en/enscript/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.5 KiB
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchurl, gettext }:
stdenv.mkDerivation rec {
pname = "enscript";
version = "1.6.6";
src = fetchurl {
url = "mirror://gnu/enscript/enscript-${version}.tar.gz";
2013-12-15 10:35:47 +00:00
sha256 = "1fy0ymvzrrvs889zanxcaxjfcxarm2d3k43c9frmbl1ld7dblmkd";
};
patches = [
# fix compile failure on macos. use system getopt like linux
# requires that compat/getopt.h is also removed
# https://savannah.gnu.org/bugs/?64307
./0001-use-system-getopt.patch
];
postPatch = ''
# the delete component of 0001-use-system-getopt.patch
rm compat/getopt.h
# Fix building on Darwin with GCC.
substituteInPlace compat/regex.c --replace \
__private_extern__ '__attribute__ ((visibility ("hidden")))'
'';
2014-07-23 09:25:38 +00:00
buildInputs = [ gettext ];
doCheck = true;
meta = {
description = "Converter from ASCII to PostScript, HTML, or RTF";
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 09:19:50 +00:00
license = lib.licenses.gpl3Plus;
homepage = "https://www.gnu.org/software/enscript/";
2015-01-13 21:33:24 +00:00
maintainers = [ ];
2021-01-15 09:19:50 +00:00
platforms = lib.platforms.all;
2024-11-19 08:14:45 +00:00
mainProgram = "enscript";
};
}