about summary refs log tree commit diff
path: root/pkgs/applications/graphics/sane/xsane.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2012-11-26 16:17:31 +0100
committerPeter Simons <simons@cryp.to>2012-11-26 16:18:05 +0100
commita814d0bc90927c7ac797f1f69bdd29caa7175a7f (patch)
treed16978f2f47072694e1c35badd600439f037e22f /pkgs/applications/graphics/sane/xsane.nix
parentfc57b8940b9e7d3cceac582e9e63514cb2b848a8 (diff)
downloadnixlib-a814d0bc90927c7ac797f1f69bdd29caa7175a7f.tar
nixlib-a814d0bc90927c7ac797f1f69bdd29caa7175a7f.tar.gz
nixlib-a814d0bc90927c7ac797f1f69bdd29caa7175a7f.tar.bz2
nixlib-a814d0bc90927c7ac797f1f69bdd29caa7175a7f.tar.lz
nixlib-a814d0bc90927c7ac797f1f69bdd29caa7175a7f.tar.xz
nixlib-a814d0bc90927c7ac797f1f69bdd29caa7175a7f.tar.zst
nixlib-a814d0bc90927c7ac797f1f69bdd29caa7175a7f.zip
SANE: switch snapshot version of the backends to git (and general cleanup)
Diffstat (limited to 'pkgs/applications/graphics/sane/xsane.nix')
-rw-r--r--pkgs/applications/graphics/sane/xsane.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/sane/xsane.nix b/pkgs/applications/graphics/sane/xsane.nix
new file mode 100644
index 000000000000..c4fdf3a00440
--- /dev/null
+++ b/pkgs/applications/graphics/sane/xsane.nix
@@ -0,0 +1,25 @@
+{ stdenv, fetchurl, saneBackends, saneFrontends, libX11, gtk, pkgconfig, libpng, libusb ? null }:
+
+stdenv.mkDerivation rec {
+  name = "xsane-0.998";
+
+  src = fetchurl {
+    url = "http://www.xsane.org/download/${name}.tar.gz";
+    sha256 = "0vn2cj85ijgp2v2j2h9xpqmg2jwlbxmwyb88kxhjjakqay02ybm3";
+  };
+
+  preConfigure = ''
+    sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/xsane-back-gtk.c
+  '';
+
+  buildInputs = [libpng saneBackends saneFrontends libX11 gtk pkgconfig ] ++
+	(if (libusb != null) then [libusb] else []);
+
+  meta = {
+    homepage = http://www.sane-project.org/;
+    description = "Graphical scanning frontend for sane";
+    license = "GPLv2+";
+    maintainers = with stdenv.lib.maintainers; [viric simons];
+    platforms = with stdenv.lib.platforms; linux;
+  };
+}