summary refs log tree commit diff
path: root/pkgs/applications/graphics/sane/frontends.nix
blob: d7b066220559049278c4232cd2ce4a42d1d9e317 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl, sane-backends, libX11, gtk, pkgconfig, libusb ? null}:

stdenv.mkDerivation rec {
  name = "sane-frontends-1.0.14";

  src = fetchurl {
    url = "ftp://ftp.sane-project.org/pub/sane/sane-frontends-1.0.14/${name}.tar.gz";
    md5 = "c63bf7b0bb5f530cf3c08715db721cd3";
  };

  preConfigure = ''
    sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/gtkglue.c
  '';

  buildInputs = [sane-backends libX11 gtk pkgconfig] ++
	(if libusb != null then [libusb] else []);

  meta = {
    homepage = "http://www.sane-project.org/";
    description = "Scanner Access Now Easy";
    license = stdenv.lib.licenses.gpl2Plus;

    maintainers = [ stdenv.lib.maintainers.simons ];
    platforms = stdenv.lib.platforms.linux;
  };
}