Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2024-11-24 15:23:26 +01:00
{
autoreconfHook,
cups,
fetchFromGitHub,
ghostscript,
2025-07-19 22:30:33 +05:00
lib,
2024-11-24 15:23:26 +01:00
libcupsfilters,
libz,
mupdf,
pkg-config,
poppler-utils,
2024-11-24 15:23:26 +01:00
stdenv,
}:
stdenv.mkDerivation rec {
pname = "libppd";
2025-03-17 08:46:47 +00:00
version = "2.1.1";
2024-11-24 15:23:26 +01:00
src = fetchFromGitHub {
owner = "OpenPrinting";
repo = "libppd";
rev = version;
2025-03-17 08:46:47 +00:00
hash = "sha256-8ofCv+tKgBk9GoGD4lmBPB/S4ABZ6cWGOk/KqDsEzNk=";
2024-11-24 15:23:26 +01:00
};
nativeBuildInputs = [
autoreconfHook
pkg-config
cups
];
buildInputs = [
2025-01-02 15:32:12 +01:00
cups
2024-11-24 15:23:26 +01:00
ghostscript
libcupsfilters
mupdf
libz
];
configureFlags = [
"--with-mutool-path=${mupdf}/bin/mutool"
"--with-pdftops=pdftops"
"--with-pdftops-path=${poppler-utils}/bin/pdftops"
2024-11-24 15:23:26 +01:00
"--with-gs-path=${ghostscript}/bin/gs"
"--with-pdftocairo-path=${poppler-utils}/bin/pdftocairo"
2024-11-24 15:23:26 +01:00
];
makeFlags = [
"CUPS_SERVERBIN=$(out)/lib/cups"
"CUPS_DATADIR=$(out)/share/cups"
"CUPS_SERVERROOT=$(out)/etc/cups"
];
2025-07-19 22:30:33 +05:00
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;
};
2024-11-24 15:23:26 +01:00
}