cups-pdf-filter -> cups-filters, enable by default for cups

This commit is contained in:
Domen Kožar 2014-11-23 17:51:55 +01:00
parent 909b62fa6e
commit 23567ac200
3 changed files with 33 additions and 3 deletions

@ -107,7 +107,7 @@ in
type = types.listOf types.path;
example = literalExample "[ pkgs.splix ]";
description = ''
CUPS drivers to use. Drivers provided by CUPS, Ghostscript
CUPS drivers to use. Drivers provided by CUPS, cups-filters, Ghostscript
and Samba are added unconditionally.
'';
};
@ -175,7 +175,7 @@ in
};
services.printing.drivers =
[ pkgs.cups pkgs.ghostscript additionalBackends
[ pkgs.cups pkgs.ghostscript pkgs.cups_filters additionalBackends
pkgs.perl pkgs.coreutils pkgs.gnused pkgs.bc pkgs.gawk pkgs.gnugrep
];

@ -0,0 +1,30 @@
{ stdenv, fetchurl, pkgconfig, cups, poppler, fontconfig
, libjpeg, libpng, perl, ijs, qpdf, dbus }:
stdenv.mkDerivation rec {
name = "cups-filters-${version}";
version = "1.0.61";
src = fetchurl {
url = "http://openprinting.org/download/cups-filters/${name}.tar.xz";
sha256 = "1bq48nnrarlbf6qc93bz1n5wlh6j420gppbck3r45sinwhz5wa7m";
};
buildInputs = [
pkgconfig cups poppler fontconfig libjpeg libpng perl
ijs qpdf dbus
];
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";
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";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.linux;
};
}

@ -12332,7 +12332,7 @@ let
cups = callPackage ../misc/cups { libusb = libusb1; };
cups_pdf_filter = callPackage ../misc/cups/pdf-filter.nix { };
cups_filters = callPackage ../misc/cups/filters.nix { };
crashplan = callPackage ../applications/backup/crashplan { };