nixpkgs/pkgs/tools/text/a2ps/default.nix

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

47 lines
1.3 KiB
Nix
Raw Normal View History

2023-03-14 08:56:43 +00:00
{ lib
, stdenv
, fetchurl
, autoconf
, bison
, file
, perl
, pkg-config
, boehmgc
, gperf
, libpaper
}:
2016-01-01 18:11:42 +00:00
stdenv.mkDerivation rec {
2021-07-27 20:57:59 +00:00
pname = "a2ps";
2023-07-08 21:52:43 +00:00
version = "4.15.5";
2021-07-27 20:57:59 +00:00
2016-01-01 18:11:42 +00:00
src = fetchurl {
2021-07-27 20:57:59 +00:00
url = "mirror://gnu/a2ps/a2ps-${version}.tar.gz";
2023-07-08 21:52:43 +00:00
hash = "sha256-gbsbQQTnwmOXYkUe3JeG2vPf6ziErfx9xqydII8w2n8=";
2016-01-01 18:11:42 +00:00
};
postPatch = ''
substituteInPlace afm/make_fonts_map.sh --replace "/bin/rm" "rm"
substituteInPlace tests/defs.in --replace "/bin/rm" "rm"
'';
2023-03-14 08:56:43 +00:00
nativeBuildInputs = [ autoconf bison file perl pkg-config ];
buildInputs = [ boehmgc gperf libpaper ];
strictDeps = true;
2016-02-09 02:14:32 +00:00
meta = with lib; {
2016-08-28 20:32:32 +00:00
description = "An Anything to PostScript converter and pretty-printer";
2016-01-01 18:11:42 +00: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 = "https://www.gnu.org/software/a2ps/";
2016-01-01 21:03:21 +00:00
license = licenses.gpl3Plus;
2016-01-01 18:11:42 +00:00
maintainers = [ maintainers.bennofs ];
2023-03-14 08:56:43 +00:00
platforms = platforms.unix;
2016-01-01 18:11:42 +00:00
};
}