libcupsfilters: fix cross build, cleanup (#374997)

authored by misuzu.tngl.sh and committed by GitHub aeb8e0f7 d1d706fd

+13 -4
+13 -4
pkgs/by-name/li/libcupsfilters/package.nix
··· 7 7 fontconfig, 8 8 ghostscript, 9 9 lcms2, 10 + lib, 10 11 libexif, 11 12 libjpeg, 12 13 libpng, ··· 33 34 nativeBuildInputs = [ 34 35 autoreconfHook 35 36 pkg-config 36 - cups 37 37 ]; 38 38 buildInputs = [ 39 + cups 39 40 dbus 40 41 fontconfig 41 42 ghostscript ··· 50 51 qpdf 51 52 ]; 52 53 configureFlags = [ 53 - "--with-mutool-path=${mupdf}/bin/mutool" 54 - "--with-gs-path=${ghostscript}/bin/gs" 55 - "--with-ippfind-path=${cups}/bin/ippfind" 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"}" 56 58 "--enable-imagefilters" 57 59 "--with-test-font-path=${dejavu_fonts}/share/fonts/truetype/DejaVuSans.ttf" 58 60 ]; ··· 61 63 "CUPS_DATADIR=$(out)/share/cups" 62 64 "CUPS_SERVERROOT=$(out)/etc/cups" 63 65 ]; 66 + 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 + }; 64 73 }