diff options
author | Domen Kožar <domen@dev.si> | 2014-11-23 17:51:55 +0100 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2014-11-23 17:51:55 +0100 |
commit | 23567ac200dddaa06ff1b45201b58f032ed0f881 (patch) | |
tree | 5bdf65c721fe17fbd2ec8f268961a31870c8c035 /pkgs/misc/cups | |
parent | 909b62fa6e04aa70c691706beac8ff9c5e806281 (diff) | |
download | nixpkgs-23567ac200dddaa06ff1b45201b58f032ed0f881.tar nixpkgs-23567ac200dddaa06ff1b45201b58f032ed0f881.tar.gz nixpkgs-23567ac200dddaa06ff1b45201b58f032ed0f881.tar.bz2 nixpkgs-23567ac200dddaa06ff1b45201b58f032ed0f881.tar.lz nixpkgs-23567ac200dddaa06ff1b45201b58f032ed0f881.tar.xz nixpkgs-23567ac200dddaa06ff1b45201b58f032ed0f881.tar.zst nixpkgs-23567ac200dddaa06ff1b45201b58f032ed0f881.zip |
cups-pdf-filter -> cups-filters, enable by default for cups
Diffstat (limited to 'pkgs/misc/cups')
-rw-r--r-- | pkgs/misc/cups/filters.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/misc/cups/filters.nix b/pkgs/misc/cups/filters.nix new file mode 100644 index 00000000000..31ef0bc0efc --- /dev/null +++ b/pkgs/misc/cups/filters.nix @@ -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; + }; +} |