|
|
|
@ -76,15 +76,19 @@ stdenv.mkDerivation rec { |
|
|
|
|
sed "s@^ZLIBDIR=.*@ZLIBDIR=${zlib.dev}/include@" -i configure.ac |
|
|
|
|
|
|
|
|
|
autoconf |
|
|
|
|
'' + lib.optionalString cupsSupport '' |
|
|
|
|
configureFlags="$configureFlags --with-cups-serverbin=$out/lib/cups --with-cups-serverroot=$out/etc/cups --with-cups-datadir=$out/share/cups" |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
configureFlags = |
|
|
|
|
[ "--with-system-libtiff" |
|
|
|
|
"--enable-dynamic" |
|
|
|
|
] ++ lib.optional x11Support "--with-x" |
|
|
|
|
++ lib.optional cupsSupport "--enable-cups"; |
|
|
|
|
configureFlags = [ |
|
|
|
|
"--with-system-libtiff" |
|
|
|
|
"--enable-dynamic" |
|
|
|
|
] |
|
|
|
|
++ lib.optional x11Support "--with-x" |
|
|
|
|
++ lib.optionals cupsSupport [ |
|
|
|
|
"--enable-cups" |
|
|
|
|
"--with-cups-serverbin=$(out)/lib/cups" |
|
|
|
|
"--with-cups-serverroot=$(out)/etc/cups" |
|
|
|
|
"--with-cups-datadir=$(out)/share/cups" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
doCheck = true; |
|
|
|
|
|
|
|
|
|