diff options
author | Peter Simons <simons@cryp.to> | 2012-11-26 16:17:31 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2012-11-26 16:18:05 +0100 |
commit | a814d0bc90927c7ac797f1f69bdd29caa7175a7f (patch) | |
tree | d16978f2f47072694e1c35badd600439f037e22f /pkgs/applications/graphics/sane/frontends.nix | |
parent | fc57b8940b9e7d3cceac582e9e63514cb2b848a8 (diff) |
SANE: switch snapshot version of the backends to git (and general cleanup)
Diffstat (limited to 'pkgs/applications/graphics/sane/frontends.nix')
-rw-r--r-- | pkgs/applications/graphics/sane/frontends.nix | 26 |
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; + }; +} |