2016-01-01 19:11:42 +01:00
|
|
|
{ stdenv, fetchurl, libpaper, gperf, file }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "a2ps-4.14";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/a2ps/${name}.tar.gz";
|
|
|
|
sha256 = "195k78m1h03m961qn7jr120z815iyb93gwi159p1p9348lyqvbpk";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace afm/make_fonts_map.sh --replace "/bin/rm" "rm"
|
|
|
|
substituteInPlace tests/defs.in --replace "/bin/rm" "rm"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libpaper gperf file ];
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-09 03:14:32 +01:00
|
|
|
|
2016-01-01 19:11:42 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-08-28 22:32:32 +02:00
|
|
|
description = "An Anything to PostScript converter and pretty-printer";
|
2016-01-01 19:11:42 +01:00
|
|
|
longDescription = ''
|
|
|
|
GNU a2ps converts files into PostScript for printing or viewing. It uses a nice default format,
|
|
|
|
usually two pages on each physical page, borders surrounding pages, headers with useful information
|
|
|
|
(page number, printing date, file name or supplied header), line numbering, symbol substitution as
|
|
|
|
well as pretty printing for a wide range of programming languages.
|
|
|
|
'';
|
|
|
|
homepage = http://www.inf.enst.fr/~demaille/a2ps/index.html;
|
2016-01-01 22:03:21 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2016-01-01 19:11:42 +01:00
|
|
|
maintainers = [ maintainers.bennofs ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|