![R. RyanTM](/assets/img/avatar_default.png)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cups-filters/versions. These checks were done: - built on NixOS - ran ‘/nix/store/h8hpf5fjx7fg0p1sv9yyvg6b803k61k4-cups-filters-1.20.3/bin/foomatic-rip -h’ got 0 exit code - ran ‘/nix/store/h8hpf5fjx7fg0p1sv9yyvg6b803k61k4-cups-filters-1.20.3/bin/foomatic-rip --help’ got 0 exit code - found 1.20.3 with grep in /nix/store/h8hpf5fjx7fg0p1sv9yyvg6b803k61k4-cups-filters-1.20.3 - directory tree listing: https://gist.github.com/aa62a318dc23326b357322da3e567915
67 lines
2.1 KiB
Nix
67 lines
2.1 KiB
Nix
{ stdenv, fetchurl, pkgconfig, cups, poppler, poppler_utils, fontconfig
|
|
, libjpeg, libpng, perl, ijs, qpdf, dbus, substituteAll, bash, avahi
|
|
, makeWrapper, coreutils, gnused, bc, gawk, gnugrep, which, ghostscript
|
|
, mupdf
|
|
}:
|
|
|
|
let
|
|
binPath = stdenv.lib.makeBinPath [ coreutils gnused bc gawk gnugrep which ];
|
|
|
|
in stdenv.mkDerivation rec {
|
|
name = "cups-filters-${version}";
|
|
version = "1.20.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://openprinting.org/download/cups-filters/${name}.tar.xz";
|
|
sha256 = "1g18qkvl9zdxickiblgs2vvkip4b6p2jalw4d30zzz3hh8f1g6iv";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
|
|
|
buildInputs = [
|
|
cups poppler poppler_utils fontconfig libjpeg libpng perl
|
|
ijs qpdf dbus avahi ghostscript mupdf
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-pdftops=pdftops"
|
|
"--with-pdftops-path=${poppler_utils}/bin/pdftops"
|
|
"--enable-imagefilters"
|
|
"--with-rcdir=no"
|
|
"--with-shell=${stdenv.shell}"
|
|
"--with-test-font-path=/path-does-not-exist"
|
|
];
|
|
|
|
makeFlags = [ "CUPS_SERVERBIN=$(out)/lib/cups" "CUPS_DATADIR=$(out)/share/cups" "CUPS_SERVERROOT=$(out)/etc/cups" ];
|
|
|
|
postConfigure =
|
|
''
|
|
# Ensure that bannertopdf can find the PDF templates in
|
|
# $out. (By default, it assumes that cups and cups-filters are
|
|
# installed in the same prefix.)
|
|
substituteInPlace config.h --replace ${cups.out}/share/cups/data $out/share/cups/data
|
|
|
|
# Ensure that gstoraster can find gs in $PATH.
|
|
substituteInPlace filter/gstoraster.c --replace execve execvpe
|
|
|
|
# Patch shebangs of generated build scripts
|
|
patchShebangs filter
|
|
'';
|
|
|
|
postInstall =
|
|
''
|
|
for i in $out/lib/cups/filter/*; do
|
|
wrapProgram "$i" --prefix PATH ':' ${binPath}
|
|
done
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
homepage = http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters;
|
|
description = "Backends, filters, and other software that was once part of the core CUPS distribution but is no longer maintained by Apple Inc";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|