diff options
author | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2010-12-14 13:30:17 +0000 |
---|---|---|
committer | Yury G. Kudryashov <urkud.urkud@gmail.com> | 2010-12-14 13:30:17 +0000 |
commit | d1781e4b4190c16521f2f08189095307c01fbaaf (patch) | |
tree | b48ddec736fce57ecd1f7d5ec1f97b0a16c15fcb /pkgs/misc | |
parent | a28a75f73794d2fae0b522e156be96b77d30ddec (diff) | |
download | nixlib-d1781e4b4190c16521f2f08189095307c01fbaaf.tar nixlib-d1781e4b4190c16521f2f08189095307c01fbaaf.tar.gz nixlib-d1781e4b4190c16521f2f08189095307c01fbaaf.tar.bz2 nixlib-d1781e4b4190c16521f2f08189095307c01fbaaf.tar.lz nixlib-d1781e4b4190c16521f2f08189095307c01fbaaf.tar.xz nixlib-d1781e4b4190c16521f2f08189095307c01fbaaf.tar.zst nixlib-d1781e4b4190c16521f2f08189095307c01fbaaf.zip |
Add pdftops CUPS filter
I've packaged this as a separate expression because it depends on poppler (why don't they look for pdftops on runtime?..). svn path=/nixpkgs/trunk/; revision=25124
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/cups/pdf-filter.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/misc/cups/pdf-filter.nix b/pkgs/misc/cups/pdf-filter.nix new file mode 100644 index 000000000000..ab978068e175 --- /dev/null +++ b/pkgs/misc/cups/pdf-filter.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchurl, pkgconfig, cups, poppler }: + +let version = "1.4.5"; in + +stdenv.mkDerivation { + name = "cups-pdf-filter-${version}"; + + src = fetchurl { + url = "http://ftp.easysw.com/pub/cups/${version}/cups-${version}-source.tar.bz2"; + sha256 = "1zhf3hvx11i0qnbwyybmdhx4fxkxfd4ch69k59fj5bz8wvcdcl04"; + }; + + buildInputs = [ pkgconfig cups poppler ]; + + preConfigure = '' + sed -e 's@\.\./cups/$(LIBCUPS)@@' -e 's@$(LIBCUPSIMAGE)@@' -i filter/Makefile + ''; + + NIX_LDFLAGS="-L${cups}/lib"; + + configureFlags = '' + --localstatedir=/var --enable-dbus + --enable-image --with-pdftops=pdftops''; + + buildPhase = '' + cd filter + make pdftops + ''; + + installPhase = '' + mkdir -pv $out/lib/cups/filter + cp -v pdftops $out/lib/cups/filter + ''; + + + meta = { + homepage = http://www.cups.org/; + description = "Image and pdf filters for CUPS"; + license = "GPLv2"; + maintainers = [ stdenv.lib.maintainers.urkud ]; + platforms = stdenv.lib.platforms.linux; + }; +} |