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