Files
nixpkgs/pkgs/by-name/li/libppd/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.2 KiB
Nix

{
autoreconfHook,
cups,
fetchFromGitHub,
ghostscript,
lib,
libcupsfilters,
libz,
mupdf,
pkg-config,
poppler-utils,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "libppd";
version = "2.1.1";
src = fetchFromGitHub {
owner = "OpenPrinting";
repo = "libppd";
rev = 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;
};
}