fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchurl, pkgconfig
2, dbus, libconfuse, libjpeg, sane-backends, systemd }:
3
4stdenv.mkDerivation rec {
5 name = "scanbd-${version}";
6 version = "1.4.4";
7
8 src = fetchurl {
9 sha256 = "07a59jk9b2hh49v5lcpckp64f5lny9sq8h0h2p2jcs9cqazf6q9s";
10 url = "mirror://sourceforge/scanbd/${name}.tgz";
11 };
12
13 nativeBuildInputs = [ pkgconfig ];
14 buildInputs = [ dbus libconfuse libjpeg sane-backends systemd ];
15
16 configureFlags = [
17 "--disable-Werror"
18 "--enable-udev"
19 "--with-scanbdconfdir=/etc/scanbd"
20 "--with-systemdsystemunitdir=$out/lib/systemd/system"
21 ];
22
23 enableParallelBuilding = true;
24
25 installFlags = [
26 "scanbdconfdir=$(out)/etc/scanbd"
27 "scannerconfdir=$(scanbdconfdir)/scanner.d"
28 ];
29
30 doCheck = true;
31
32 meta = with stdenv.lib; {
33 description = "Scanner button daemon";
34 longDescription = ''
35 scanbd polls a scanner's buttons, looking for button presses, function
36 knob changes, or other scanner events such as paper inserts and removals,
37 while at the same time allowing scan-applications to access the scanner.
38
39 Various actions can be submitted (scan, copy, email, ...) via action
40 scripts. The function knob values are passed to the action scripts as
41 well. Scan actions are also signaled via dbus. This can be useful for
42 foreign applications. Scans can also be triggered via dbus from foreign
43 applications.
44
45 On platforms which support signaling of dynamic device insertion/removal
46 (libudev, dbus, hal), scanbd supports this as well.
47
48 scanbd can use all sane-backends or some special backends from the (old)
49 scanbuttond project.
50 '';
51 homepage = http://scanbd.sourceforge.net/;
52 downloadPage = http://sourceforge.net/projects/scanbd/;
53 license = licenses.gpl2Plus;
54 platforms = platforms.linux;
55 maintainers = with maintainers; [ nckx ];
56 };
57}