nixpkgs/pkgs/tools/graphics/scanbd/default.nix

57 lines
1.8 KiB
Nix
Raw Normal View History

2016-01-25 02:21:29 +00:00
{ stdenv, fetchurl, pkgconfig
2016-06-17 21:56:47 +00:00
, dbus, libconfuse, libjpeg, sane-backends, systemd }:
2016-01-25 02:21:29 +00:00
stdenv.mkDerivation rec {
name = "scanbd-${version}";
version = "1.5.1";
2016-01-25 02:21:29 +00:00
src = fetchurl {
sha256 = "0pvy4qirfjdfm8aj6x5rkbgl7hk3jfa2s21qkk8ic5dqfjjab75n";
2016-01-25 02:21:29 +00:00
url = "mirror://sourceforge/scanbd/${name}.tgz";
};
nativeBuildInputs = [ pkgconfig ];
2016-06-17 21:56:47 +00:00
buildInputs = [ dbus libconfuse libjpeg sane-backends systemd ];
2016-01-25 02:21:29 +00:00
configureFlags = [
"--disable-Werror"
"--enable-udev"
"--with-scanbdconfdir=/etc/scanbd"
"--with-systemdsystemunitdir=$out/lib/systemd/system"
];
enableParallelBuilding = true;
installFlags = [
"scanbdconfdir=$(out)/etc/scanbd"
"scannerconfdir=$(scanbdconfdir)/scanner.d"
];
doCheck = true;
meta = with stdenv.lib; {
description = "Scanner button daemon";
longDescription = ''
scanbd polls a scanner's buttons, looking for button presses, function
knob changes, or other scanner events such as paper inserts and removals,
while at the same time allowing scan-applications to access the scanner.
Various actions can be submitted (scan, copy, email, ...) via action
scripts. The function knob values are passed to the action scripts as
well. Scan actions are also signaled via dbus. This can be useful for
foreign applications. Scans can also be triggered via dbus from foreign
applications.
On platforms which support signaling of dynamic device insertion/removal
(libudev, dbus, hal), scanbd supports this as well.
scanbd can use all sane-backends or some special backends from the (old)
scanbuttond project.
'';
homepage = http://scanbd.sourceforge.net/;
2018-12-01 18:49:28 +00:00
downloadPage = https://sourceforge.net/projects/scanbd/;
2016-01-25 02:21:29 +00:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}