presenterm: 0.9.0 -> 0.10.0 (#378946)
[NixPkgs.git] / pkgs / by-name / li / libcupsfilters / package.nix
blob22d497f098dd065ff7d8afa7726247ce858b3614
2   autoreconfHook,
3   cups,
4   dbus,
5   dejavu_fonts,
6   fetchFromGitHub,
7   fontconfig,
8   ghostscript,
9   lcms2,
10   lib,
11   libexif,
12   libjpeg,
13   libpng,
14   libtiff,
15   mupdf,
16   pkg-config,
17   poppler,
18   poppler_utils,
19   qpdf,
20   stdenv,
23 stdenv.mkDerivation rec {
24   pname = "libcupsfilters";
25   version = "2.1.0";
27   src = fetchFromGitHub {
28     owner = "OpenPrinting";
29     repo = "libcupsfilters";
30     rev = "2.1.0";
31     hash = "sha256-tnQqM4stUJseDO9BG+PRUSFafjgpQQklTDsDsB9zQ4Y=";
32   };
34   nativeBuildInputs = [
35     autoreconfHook
36     pkg-config
37   ];
38   buildInputs = [
39     cups
40     dbus
41     fontconfig
42     ghostscript
43     lcms2
44     libexif
45     libjpeg
46     libpng
47     libtiff
48     mupdf
49     poppler
50     poppler_utils
51     qpdf
52   ];
53   configureFlags = [
54     "--with-cups-config=${lib.getExe' (lib.getDev cups) "cups-config"}"
55     "--with-mutool-path=${lib.getExe' mupdf "mutool"}"
56     "--with-gs-path=${lib.getExe ghostscript}"
57     "--with-ippfind-path=${lib.getExe' cups "ippfind"}"
58     "--enable-imagefilters"
59     "--with-test-font-path=${dejavu_fonts}/share/fonts/truetype/DejaVuSans.ttf"
60   ];
61   makeFlags = [
62     "CUPS_SERVERBIN=$(out)/lib/cups"
63     "CUPS_DATADIR=$(out)/share/cups"
64     "CUPS_SERVERROOT=$(out)/etc/cups"
65   ];
67   meta = {
68     homepage = "https://github.com/OpenPrinting/libcupsfilters";
69     description = "Backends, filters, and other software that was once part of the core CUPS distribution but is no longer maintained by Apple Inc";
70     license = lib.licenses.asl20;
71     platforms = lib.platforms.linux;
72   };