2024-11-24 15:23:26 +01:00
|
|
|
{
|
|
|
|
autoreconfHook,
|
|
|
|
avahi,
|
|
|
|
cups,
|
|
|
|
fetchFromGitHub,
|
|
|
|
glib,
|
|
|
|
lib,
|
|
|
|
libcupsfilters,
|
|
|
|
libppd,
|
|
|
|
pkg-config,
|
|
|
|
stdenv,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cups-browsed";
|
2025-01-09 00:41:01 +00:00
|
|
|
version = "2.1.1";
|
2024-11-24 15:23:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenPrinting";
|
|
|
|
repo = "cups-browsed";
|
2025-04-08 02:51:45 -04:00
|
|
|
rev = version;
|
2025-01-09 00:41:01 +00:00
|
|
|
hash = "sha256-Cfk28rxxgzzQs7B+tNmeUzDYL1eCx9zYwRsS/J6QX9s=";
|
2024-11-24 15:23:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
cups
|
2025-05-20 07:13:49 +02:00
|
|
|
glib # Required for gdbus-codegen
|
|
|
|
pkg-config
|
2024-11-24 15:23:26 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
avahi
|
2025-05-20 07:13:49 +02:00
|
|
|
cups
|
|
|
|
glib
|
2024-11-24 15:23:26 +01:00
|
|
|
libcupsfilters
|
|
|
|
libppd
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-rcdir=no"
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"CUPS_SERVERBIN=$(out)/lib/cups"
|
|
|
|
"CUPS_DATADIR=$(out)/share/cups"
|
|
|
|
"CUPS_SERVERROOT=$(out)/etc/cups"
|
|
|
|
];
|
2025-07-19 22:29:08 +05:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Daemon for browsing the Bonjour broadcasts of shared, remote CUPS printers";
|
|
|
|
homepage = "https://github.com/OpenPrinting/cups-browsed";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
mainProgram = "cups-browsed";
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
2024-11-24 15:23:26 +01:00
|
|
|
}
|