mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
47 lines
1.3 KiB
Nix
47 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.6";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/a2ps/a2ps-${version}.tar.gz";
|
|
hash = "sha256-h/+dgByxGWkYHVuM+LZeZeWyS7DHahuCXoCY8pBvvfQ=";
|
|
};
|
|
|
|
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 = "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;
|
|
};
|
|
}
|