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

58 lines
1.0 KiB
Nix
Raw Permalink Normal View History

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";
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
glib # Required for gdbus-codegen
pkg-config
2024-11-24 15:23:26 +01:00
];
buildInputs = [
avahi
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
}