depot/third_party/nixpkgs/pkgs/tools/text/a2ps/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

46 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchurl
, autoconf
, bison
, file
, perl
, pkg-config
, boehmgc
, gperf
, libpaper
}:
stdenv.mkDerivation rec {
pname = "a2ps";
version = "4.15.5";
src = fetchurl {
url = "mirror://gnu/a2ps/a2ps-${version}.tar.gz";
hash = "sha256-gbsbQQTnwmOXYkUe3JeG2vPf6ziErfx9xqydII8w2n8=";
};
postPatch = ''
substituteInPlace afm/make_fonts_map.sh --replace "/bin/rm" "rm"
substituteInPlace tests/defs.in --replace "/bin/rm" "rm"
'';
nativeBuildInputs = [ autoconf bison file perl pkg-config ];
buildInputs = [ boehmgc gperf libpaper ];
strictDeps = true;
meta = with lib; {
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 ];
platforms = platforms.unix;
};
}