about summary refs log tree commit diff
path: root/pkgs/applications/graphics/sane/frontends.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-12-10 12:39:14 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-12-10 12:39:14 +0100
commit179df950904225e983418a131c527df65a1474bc (patch)
tree309665fe6bf2750ee441d539e0fd1f8574876b45 /pkgs/applications/graphics/sane/frontends.nix
parent7194db80e91a1c5a84fe997beb9947761d363efb (diff)
parent28d178521d9e2cfb50b1ebfcfed6a666f0bad28d (diff)
Merge remote-tracking branch 'origin/master' into systemd
Diffstat (limited to 'pkgs/applications/graphics/sane/frontends.nix')
-rw-r--r--pkgs/applications/graphics/sane/frontends.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/sane/frontends.nix b/pkgs/applications/graphics/sane/frontends.nix
new file mode 100644
index 0000000000000..1c768e29873e4
--- /dev/null
+++ b/pkgs/applications/graphics/sane/frontends.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchurl, saneBackends, 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 = [saneBackends libX11 gtk pkgconfig] ++
+	(if (libusb != null) then [libusb] else []);
+
+  meta = {
+    homepage = "http://www.sane-project.org/";
+    description = "Scanner Access Now Easy";
+    license = "GPLv2+";
+
+    maintainers = [ stdenv.lib.maintainers.simons ];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}