2023-03-15 16:39:30 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, autoconf
|
|
|
|
, bison
|
|
|
|
, file
|
|
|
|
, perl
|
|
|
|
, pkg-config
|
|
|
|
, boehmgc
|
|
|
|
, gperf
|
|
|
|
, libpaper
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-05 21:33:18 +00:00
|
|
|
pname = "a2ps";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "4.15.6";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-08-05 21:33:18 +00:00
|
|
|
url = "mirror://gnu/a2ps/a2ps-${version}.tar.gz";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-h/+dgByxGWkYHVuM+LZeZeWyS7DHahuCXoCY8pBvvfQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace afm/make_fonts_map.sh --replace "/bin/rm" "rm"
|
|
|
|
substituteInPlace tests/defs.in --replace "/bin/rm" "rm"
|
|
|
|
'';
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [ autoconf bison file perl pkg-config ];
|
|
|
|
buildInputs = [ boehmgc gperf libpaper ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An Anything to PostScript converter and pretty-printer";
|
|
|
|
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 = "https://www.gnu.org/software/a2ps/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.bennofs ];
|
2023-03-15 16:39:30 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|