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:
parent
b71f3c4315
commit
0aa452e179
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1bq48nnrarlbf6qc93bz1n5wlh6j420gppbck3r45sinwhz5wa7m";
|
sha256 = "1bq48nnrarlbf6qc93bz1n5wlh6j420gppbck3r45sinwhz5wa7m";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgconfig cups poppler fontconfig libjpeg libpng perl
|
pkgconfig cups poppler fontconfig libjpeg libpng perl
|
||||||
ijs qpdf dbus
|
ijs qpdf dbus
|
||||||
];
|
];
|
||||||
@ -18,9 +18,19 @@ stdenv.mkDerivation rec {
|
|||||||
preBuild = ''
|
preBuild = ''
|
||||||
substituteInPlace Makefile --replace "/etc/rc.d" "$out/etc/rc.d"
|
substituteInPlace Makefile --replace "/etc/rc.d" "$out/etc/rc.d"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = "--with-pdftops=pdftops --enable-imagefilters";
|
configureFlags = "--with-pdftops=pdftops --enable-imagefilters";
|
||||||
|
|
||||||
makeFlags = "CUPS_SERVERBIN=$(out)/lib/cups CUPS_DATADIR=$(out)/share/cups CUPS_SERVERROOT=$(out)/etc/cups";
|
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 = {
|
meta = {
|
||||||
homepage = http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters;
|
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";
|
description = "Backends, filters, and other software that was once part of the core CUPS distribution but is no longer maintained by Apple Inc";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user