diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-08 14:43:47 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-10-08 14:43:47 -0400 |
commit | 318202951e8396e0fc1c8c6e49fcba0c1d2e27bc (patch) | |
tree | e4e6d82dd552a60b1abfe45af277f5aac1f21582 /pkgs/misc/cups | |
parent | f32979e2d8de33f83404e68d357cb2257350bd90 (diff) | |
download | nixpkgs-318202951e8396e0fc1c8c6e49fcba0c1d2e27bc.tar nixpkgs-318202951e8396e0fc1c8c6e49fcba0c1d2e27bc.tar.gz nixpkgs-318202951e8396e0fc1c8c6e49fcba0c1d2e27bc.tar.bz2 nixpkgs-318202951e8396e0fc1c8c6e49fcba0c1d2e27bc.tar.lz nixpkgs-318202951e8396e0fc1c8c6e49fcba0c1d2e27bc.tar.xz nixpkgs-318202951e8396e0fc1c8c6e49fcba0c1d2e27bc.tar.zst nixpkgs-318202951e8396e0fc1c8c6e49fcba0c1d2e27bc.zip |
Revert "Remove cups-pdf-filter"
This reverts commit 006002d16f24068668fef77ea8b2f3c653d22b4d.
Diffstat (limited to 'pkgs/misc/cups')
-rw-r--r-- | pkgs/misc/cups/pdf-filter.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/misc/cups/pdf-filter.nix b/pkgs/misc/cups/pdf-filter.nix new file mode 100644 index 00000000000..8a08eadc6a4 --- /dev/null +++ b/pkgs/misc/cups/pdf-filter.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, pkgconfig, cups, poppler }: + +stdenv.mkDerivation { + name = "cups-pdf-filter-${cups.version}"; + + inherit (cups) src; + + 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 $out/share/cups/mime + cp -v pdftops $out/lib/cups/filter + echo >$out/share/cups/mime/pdftops.convs 'application/pdf application/vnd.cups-postscript 66 pdftops' + ''; + + + 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; + }; +} |