cups-filters: Fix banners

It was looking in cups' prefix for the PDF templates. So for instance
printing a CUPS test page wouldn't work.
This commit is contained in:
Eelco Dolstra 2014-12-16 16:20:08 +01:00
parent b71f3c4315
commit 0aa452e179

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "1bq48nnrarlbf6qc93bz1n5wlh6j420gppbck3r45sinwhz5wa7m";
};
buildInputs = [
buildInputs = [
pkgconfig cups poppler fontconfig libjpeg libpng perl
ijs qpdf dbus
];
@ -18,9 +18,19 @@ stdenv.mkDerivation rec {
preBuild = ''
substituteInPlace Makefile --replace "/etc/rc.d" "$out/etc/rc.d"
'';
configureFlags = "--with-pdftops=pdftops --enable-imagefilters";
makeFlags = "CUPS_SERVERBIN=$(out)/lib/cups CUPS_DATADIR=$(out)/share/cups CUPS_SERVERROOT=$(out)/etc/cups";
# 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.)
postConfigure =
''
substituteInPlace config.h --replace ${cups}/share/cups/data $out/share/cups/data
'';
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";