1
1
{ stdenv , fetchurl , pkgconfig , cups , poppler , poppler_utils , fontconfig
2
2
, libjpeg , libpng , perl , ijs , qpdf , dbus , substituteAll , bash , avahi
3
- , makeWrapper , coreutils , gnused , bc , gawk , gnugrep , which
3
+ , makeWrapper , coreutils , gnused , bc , gawk , gnugrep , which , ghostscript
4
+ , mupdf
4
5
} :
5
6
6
7
let
7
8
binPath = stdenv . lib . makeBinPath [ coreutils gnused bc gawk gnugrep which ] ;
8
9
9
10
in stdenv . mkDerivation rec {
10
11
name = "cups-filters-${ version } " ;
11
- version = "1.11.1 " ;
12
+ version = "1.14.0 " ;
12
13
13
14
src = fetchurl {
14
15
url = "http://openprinting.org/download/cups-filters/${ name } .tar.xz" ;
15
- sha256 = "0x0jxn1hnif92m7dyqrqh015gpsf79dviarb7dfl0zya2drlk1m8 " ;
16
+ sha256 = "1v553wvr8qdwb1g04if7cw1mfm42vs6xfyg0cvzvbng6yr6jg93s " ;
16
17
} ;
17
18
18
19
nativeBuildInputs = [ pkgconfig makeWrapper ] ;
19
20
20
21
buildInputs = [
21
22
cups poppler poppler_utils fontconfig libjpeg libpng perl
22
- ijs qpdf dbus avahi
23
+ ijs qpdf dbus avahi ghostscript mupdf
23
24
] ;
24
25
25
26
configureFlags = [
@@ -41,6 +42,9 @@ in stdenv.mkDerivation rec {
41
42
42
43
# Ensure that gstoraster can find gs in $PATH.
43
44
substituteInPlace filter/gstoraster.c --replace execve execvpe
45
+
46
+ # Patch shebangs of generated build scripts
47
+ patchShebangs filter
44
48
'' ;
45
49
46
50
postInstall =
@@ -57,5 +61,6 @@ in stdenv.mkDerivation rec {
57
61
description = "Backends, filters, and other software that was once part of the core CUPS distribution but is no longer maintained by Apple Inc" ;
58
62
license = stdenv . lib . licenses . gpl2 ;
59
63
platforms = stdenv . lib . platforms . linux ;
64
+ maintainers = with stdenv . lib . maintainers ; [ layus ] ;
60
65
} ;
61
66
}
0 commit comments