mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
scanbd: init at 1.4.4
This commit is contained in:
parent
87df7fc745
commit
626c09bb46
57
pkgs/tools/graphics/scanbd/default.nix
Normal file
57
pkgs/tools/graphics/scanbd/default.nix
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
{ stdenv, fetchurl, pkgconfig
|
||||||
|
, dbus, libconfuse, sane-backends, systemd }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "scanbd-${version}";
|
||||||
|
version = "1.4.4";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
sha256 = "07a59jk9b2hh49v5lcpckp64f5lny9sq8h0h2p2jcs9cqazf6q9s";
|
||||||
|
url = "mirror://sourceforge/scanbd/${name}.tgz";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
buildInputs = [ dbus libconfuse sane-backends systemd ];
|
||||||
|
|
||||||
|
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/;
|
||||||
|
downloadPage = http://sourceforge.net/projects/scanbd/;
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ nckx ];
|
||||||
|
};
|
||||||
|
}
|
@ -3026,6 +3026,8 @@ let
|
|||||||
|
|
||||||
samplicator = callPackage ../tools/networking/samplicator { };
|
samplicator = callPackage ../tools/networking/samplicator { };
|
||||||
|
|
||||||
|
scanbd = callPackage ../tools/graphics/scanbd { };
|
||||||
|
|
||||||
screen = callPackage ../tools/misc/screen {
|
screen = callPackage ../tools/misc/screen {
|
||||||
inherit (darwin.apple_sdk.libs) utmp;
|
inherit (darwin.apple_sdk.libs) utmp;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user