2016-09-11 23:24:51 +02:00
|
|
|
{ stdenv, fetchurl, sane-backends, libX11, gtk2, pkgconfig, libusb ? null}:
|
2012-11-26 16:17:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sane-frontends-1.0.14";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-09-06 02:30:06 +02:00
|
|
|
url = "https://alioth.debian.org/frs/download.php/file/1140/${name}.tar.gz";
|
2016-09-06 02:30:54 +02:00
|
|
|
sha256 = "1ad4zr7rcxpda8yzvfkq1rfjgx9nl6lan5a628wvpdbh3fn9v0z7";
|
2012-11-26 16:17:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/gtkglue.c
|
|
|
|
'';
|
|
|
|
|
2016-09-11 23:24:51 +02:00
|
|
|
buildInputs = [sane-backends libX11 gtk2 pkgconfig] ++
|
2012-12-28 19:54:15 +01:00
|
|
|
(if libusb != null then [libusb] else []);
|
2012-11-26 16:17:31 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.sane-project.org/";
|
|
|
|
description = "Scanner Access Now Easy";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2012-11-26 16:17:31 +01:00
|
|
|
|
2016-05-16 22:30:20 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2012-11-26 16:17:31 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|