Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.3 KiB
Nix
58 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.7";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/a2ps/a2ps-${version}.tar.gz";
|
|
hash = "sha256-cV84Zwr9lQtMpxwB9Gj+760mXKUtPxEpNMY8Cov7uK8=";
|
|
};
|
|
|
|
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 = {
|
|
description = "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 = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ bennofs ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|