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
74 lines
1.4 KiB
Nix
74 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
avahi,
|
|
cups,
|
|
gnutls,
|
|
libjpeg,
|
|
libpng,
|
|
libusb1,
|
|
pkg-config,
|
|
withPAMSupport ? true,
|
|
pam,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pappl";
|
|
version = "1.4.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "michaelrsweet";
|
|
repo = "pappl";
|
|
tag = "v${version}";
|
|
hash = "sha256-XHFYwl129iD5rKC1P/roFlX+03uFE8ofwQRIEkUuOCc=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
cups
|
|
libjpeg
|
|
libpng
|
|
libusb1
|
|
zlib
|
|
]
|
|
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
|
# upstream mentions these are not needed for Mac
|
|
# see: https://github.com/michaelrsweet/pappl#requirements
|
|
avahi
|
|
gnutls
|
|
]
|
|
++ lib.optionals withPAMSupport [
|
|
pam
|
|
];
|
|
|
|
# testing requires some networking
|
|
# doCheck = true;
|
|
|
|
doInstallCheck = true;
|
|
installCheckPhase = ''
|
|
$out/bin/pappl-makeresheader --help
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "C-based framework/library for developing CUPS Printer Applications";
|
|
changelog = "https://github.com/michaelrsweet/pappl/blob/v${version}/CHANGES.md";
|
|
mainProgram = "pappl-makeresheader";
|
|
homepage = "https://github.com/michaelrsweet/pappl";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.linux; # should also work for darwin, but requires additional work
|
|
maintainers = [ lib.maintainers.NotAShelf ];
|
|
};
|
|
}
|