forked from mirrors/nixpkgs
sane-backends: update snapshot to version: 1.0.22.git20121123
This commit is contained in:
parent
0dc8926b06
commit
0bf71add78
|
@ -1,18 +1,17 @@
|
||||||
{ stdenv, fetchurl, hotplugSupport ? true, libusb ? null
|
{ stdenv, fetchurl, fetchgit, hotplugSupport ? true, libusb ? null, gt68xxFirmware ? null }:
|
||||||
, gt68xxFirmware ? null }:
|
|
||||||
let
|
let
|
||||||
firmware = gt68xxFirmware {inherit fetchurl;};
|
firmware = gt68xxFirmware { inherit fetchurl; };
|
||||||
in
|
in
|
||||||
assert hotplugSupport -> stdenv.system == "i686-linux";
|
assert hotplugSupport -> (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux");
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "sane-backends-1.0.22.git201111204";
|
name = "sane-backends-1.0.22.git20121123";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.sane-project.org/snapshots/sane-backends-git20111204.tar.gz;
|
url = "http://www.sane-project.org/snapshots/sane-backends-git20121123.tar.gz";
|
||||||
sha256 = "00b3fi8zjrq3in0wndz1xcz228mgfhwhh2knmyjsikr88hal0m47";
|
sha256 = "d13a8c9e85af52f7be2e45c70cb93a76ec04b76e7fc983809e7d70389b6e7ae5";
|
||||||
};
|
};
|
||||||
|
|
||||||
udevSupport = hotplugSupport;
|
udevSupport = hotplugSupport;
|
||||||
|
|
||||||
buildInputs = if libusb != null then [libusb] else [];
|
buildInputs = if libusb != null then [libusb] else [];
|
||||||
|
@ -26,7 +25,7 @@ stdenv.mkDerivation {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preInstall =
|
preInstall =
|
||||||
if gt68xxFirmware != null then
|
if gt68xxFirmware != null then
|
||||||
"mkdir -p \${out}/share/sane/gt68xx ; ln -s " + firmware.fw +
|
"mkdir -p \${out}/share/sane/gt68xx ; ln -s " + firmware.fw +
|
||||||
" \${out}/share/sane/gt68xx/" + firmware.name
|
" \${out}/share/sane/gt68xx/" + firmware.name
|
||||||
else "";
|
else "";
|
||||||
|
|
Loading…
Reference in a new issue