2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, sane-backends, libX11, gtk2, pkg-config, libusb-compat-0_1 ? null }:
|
2012-11-26 15:17:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "sane-frontends";
|
2017-09-10 08:45:41 +01:00
|
|
|
version = "1.0.14";
|
2012-11-26 15:17:31 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-11-16 10:32:05 +00:00
|
|
|
url = "https://alioth-archive.debian.org/releases/sane/${pname}/${version}/${pname}-${version}.tar.gz";
|
2016-09-06 01:30:54 +01:00
|
|
|
sha256 = "1ad4zr7rcxpda8yzvfkq1rfjgx9nl6lan5a628wvpdbh3fn9v0z7";
|
2012-11-26 15:17:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/gtkglue.c
|
|
|
|
'';
|
|
|
|
|
2017-09-10 08:45:41 +01:00
|
|
|
buildInputs = [ sane-backends libX11 gtk2 ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ lib.optional (libusb-compat-0_1 != null) libusb-compat-0_1;
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2012-11-26 15:17:31 +00:00
|
|
|
|
2017-09-10 08:45:41 +01:00
|
|
|
enableParallelBuilding = true;
|
2012-11-26 15:17:31 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-10 08:45:41 +01:00
|
|
|
description = "Scanner Access Now Easy";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.sane-project.org/";
|
2017-09-10 08:45:41 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ peti ];
|
|
|
|
platforms = platforms.linux;
|
2012-11-26 15:17:31 +00:00
|
|
|
};
|
|
|
|
}
|