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

30 lines
846 B
Nix
Raw Normal View History

2017-09-10 08:45:41 +01:00
{ stdenv, fetchurl, sane-backends, libX11, gtk2, pkgconfig, libusb ? null }:
stdenv.mkDerivation rec {
2017-09-10 08:45:41 +01:00
name = "sane-frontends-${version}";
version = "1.0.14";
src = fetchurl {
2017-09-10 08:45:41 +01:00
url = "https://alioth.debian.org/frs/download.php/latestfile/175/${name}.tar.gz";
2016-09-06 01:30:54 +01:00
sha256 = "1ad4zr7rcxpda8yzvfkq1rfjgx9nl6lan5a628wvpdbh3fn9v0z7";
};
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 ]
++ stdenv.lib.optional (libusb != null) libusb;
nativeBuildInputs = [ pkgconfig ];
2017-09-10 08:45:41 +01:00
enableParallelBuilding = true;
2017-09-10 08:45:41 +01: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;
};
}