nixpkgs/pkgs/applications/graphics/sane/frontends.nix

30 lines
893 B
Nix
Raw Normal View History

2020-04-28 03:29:39 +00:00
{ stdenv, fetchurl, sane-backends, libX11, gtk2, pkgconfig, libusb-compat-0_1 ? null }:
stdenv.mkDerivation rec {
pname = "sane-frontends";
2017-09-10 07:45:41 +00:00
version = "1.0.14";
src = fetchurl {
url = "https://alioth-archive.debian.org/releases/sane/${pname}/${version}/${pname}-${version}.tar.gz";
2016-09-06 00:30:54 +00:00
sha256 = "1ad4zr7rcxpda8yzvfkq1rfjgx9nl6lan5a628wvpdbh3fn9v0z7";
};
preConfigure = ''
sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/gtkglue.c
'';
2017-09-10 07:45:41 +00:00
buildInputs = [ sane-backends libX11 gtk2 ]
2020-04-28 03:29:39 +00:00
++ stdenv.lib.optional (libusb-compat-0_1 != null) libusb-compat-0_1;
2017-09-10 07:45:41 +00:00
nativeBuildInputs = [ pkgconfig ];
2017-09-10 07:45:41 +00:00
enableParallelBuilding = true;
2017-09-10 07:45:41 +00:00
meta = with stdenv.lib; {
description = "Scanner Access Now Easy";
homepage = "http://www.sane-project.org/";
2017-09-10 07:45:41 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ peti ];
platforms = platforms.linux;
};
}