cups-filters: fix build with latest poppler

This commit is contained in:
Thomas Tuegel 2015-04-02 06:58:09 -05:00
parent 8769f43aa4
commit 01e9dfb449

View file

@ -10,6 +10,20 @@ stdenv.mkDerivation rec {
sha256 = "1bq48nnrarlbf6qc93bz1n5wlh6j420gppbck3r45sinwhz5wa7m";
};
patches = [
(substituteAll {
src = ./longer-shell-path.patch;
bash = "${bash}/bin/bash";
})
# Fix build with poppler-0.31.0
(fetchurl {
url = "https://bugs.linuxfoundation.org/attachment.cgi?id=476";
name = "cups-filters-poppler-0.31.0.patch";
sha256 = "016pzksz4nl1sv3p5ahlnbmb7c899yrvlzq8jxic0gvdrzwd5bl4";
})
];
buildInputs = [
pkgconfig cups poppler fontconfig libjpeg libpng perl
ijs qpdf dbus
@ -34,13 +48,6 @@ stdenv.mkDerivation rec {
substituteInPlace filter/gstoraster.c --replace execve execvpe
'';
patches = [
(substituteAll {
src = ./longer-shell-path.patch;
bash = "${bash}/bin/bash";
})
];
postInstall =
''
for i in $out/lib/cups/filter/{pstopdf,texttops,imagetops}; do