mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
241b80a1d3
svn path=/nixpkgs/trunk/; revision=19456
18 lines
512 B
Nix
18 lines
512 B
Nix
{stdenv, fetchurl, saneBackends, saneFrontends,
|
|
libX11, gtk, pkgconfig, libusb ? null}:
|
|
stdenv.mkDerivation {
|
|
name = "xsane-0.996";
|
|
|
|
src = fetchurl {
|
|
url = ftp://ftp.sane-project.org/pub/sane/xsane/xsane-0.996.tar.gz;
|
|
sha256 = "0zddar0y76iv4c55qzfmnm819z5hzisr2jwjb60x36v6bdrhcjx5";
|
|
};
|
|
|
|
preConfigure = ''
|
|
sed -e '/SANE_CAP_ALWAYS_SETTABLE/d' -i src/xsane-back-gtk.c
|
|
'';
|
|
|
|
buildInputs = [saneBackends saneFrontends libX11 gtk pkgconfig ] ++
|
|
(if (libusb != null) then [libusb] else []);
|
|
}
|