blob: 5c6879fca0970c2090bde6580080d6e9699b4969 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
autoreconfHook,
cups,
fetchFromGitHub,
ghostscript,
lib,
libcupsfilters,
libz,
mupdf,
pkg-config,
poppler-utils,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libppd";
version = "2.1.1";
src = fetchFromGitHub {
owner = "OpenPrinting";
repo = "libppd";
rev = finalAttrs.version;
hash = "sha256-8ofCv+tKgBk9GoGD4lmBPB/S4ABZ6cWGOk/KqDsEzNk=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
cups
];
buildInputs = [
cups
ghostscript
libcupsfilters
mupdf
libz
];
configureFlags = [
"--with-mutool-path=${mupdf}/bin/mutool"
"--with-pdftops=pdftops"
"--with-pdftops-path=${poppler-utils}/bin/pdftops"
"--with-gs-path=${ghostscript}/bin/gs"
"--with-pdftocairo-path=${poppler-utils}/bin/pdftocairo"
];
makeFlags = [
"CUPS_SERVERBIN=$(out)/lib/cups"
"CUPS_DATADIR=$(out)/share/cups"
"CUPS_SERVERROOT=$(out)/etc/cups"
];
meta = {
description = "Library designed to support legacy printer drivers by handling PostScript Printer Description (PPD) file";
homepage = "https://github.com/OpenPrinting/libppd";
license = lib.licenses.asl20;
platforms = lib.platforms.linux;
};
})
|