2017-09-10 09:45:41 +02:00
|
|
|
{ stdenv, fetchurl, sane-backends, libX11, gtk2, pkgconfig, libusb ? null }:
|
2012-11-26 16:17:31 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sane-frontends";
|
2017-09-10 09:45:41 +02:00
|
|
|
version = "1.0.14";
|
2012-11-26 16:17:31 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-11-16 11:32:05 +01:00
|
|
|
url = "https://alioth-archive.debian.org/releases/sane/${pname}/${version}/${pname}-${version}.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
|
|
|
|
'';
|
|
|
|
|
2017-09-10 09:45:41 +02:00
|
|
|
buildInputs = [ sane-backends libX11 gtk2 ]
|
|
|
|
++ stdenv.lib.optional (libusb != null) libusb;
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2012-11-26 16:17:31 +01:00
|
|
|
|
2017-09-10 09:45:41 +02:00
|
|
|
enableParallelBuilding = true;
|
2012-11-26 16:17:31 +01:00
|
|
|
|
2017-09-10 09:45:41 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Scanner Access Now Easy";
|
|
|
|
homepage = http://www.sane-project.org/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ peti ];
|
|
|
|
platforms = platforms.linux;
|
2012-11-26 16:17:31 +01:00
|
|
|
};
|
|
|
|
}
|