2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, sane-backends, libX11, gtk2, pkgconfig, libusb-compat-0_1 ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sane-frontends";
|
|
|
|
version = "1.0.14";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://alioth-archive.debian.org/releases/sane/${pname}/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1ad4zr7rcxpda8yzvfkq1rfjgx9nl6lan5a628wvpdbh3fn9v0z7";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/gtkglue.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ sane-backends libX11 gtk2 ]
|
2021-01-17 00:15:33 +00:00
|
|
|
++ lib.optional (libusb-compat-0_1 != null) libusb-compat-0_1;
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Scanner Access Now Easy";
|
|
|
|
homepage = "http://www.sane-project.org/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ peti ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|