Skip to content

Commit aeb8e0f

Browse files
authored
libcupsfilters: fix cross build, cleanup (NixOS#374997)
2 parents d1d706f + af0fc95 commit aeb8e0f

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

pkgs/by-name/li/libcupsfilters/package.nix

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
fontconfig,
88
ghostscript,
99
lcms2,
10+
lib,
1011
libexif,
1112
libjpeg,
1213
libpng,
@@ -33,9 +34,9 @@ stdenv.mkDerivation rec {
3334
nativeBuildInputs = [
3435
autoreconfHook
3536
pkg-config
36-
cups
3737
];
3838
buildInputs = [
39+
cups
3940
dbus
4041
fontconfig
4142
ghostscript
@@ -50,9 +51,10 @@ stdenv.mkDerivation rec {
5051
qpdf
5152
];
5253
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"}"
5658
"--enable-imagefilters"
5759
"--with-test-font-path=${dejavu_fonts}/share/fonts/truetype/DejaVuSans.ttf"
5860
];
@@ -61,4 +63,11 @@ stdenv.mkDerivation rec {
6163
"CUPS_DATADIR=$(out)/share/cups"
6264
"CUPS_SERVERROOT=$(out)/etc/cups"
6365
];
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+
};
6473
}

0 commit comments

Comments
 (0)