mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
saneBackends: remove some redundancies (no hash change)
This commit is contained in:
parent
58bf694071
commit
61106207cd
@ -6,12 +6,11 @@
|
||||
, version, src, ...
|
||||
}:
|
||||
|
||||
assert hotplugSupport -> (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux");
|
||||
assert hotplugSupport ->
|
||||
builtins.elem stdenv.system [ "i686-linux" "x86_64-linux" ];
|
||||
|
||||
let
|
||||
|
||||
firmware = gt68xxFirmware { inherit fetchurl; };
|
||||
|
||||
udevSupport = hotplugSupport;
|
||||
|
||||
in
|
||||
@ -41,8 +40,8 @@ stdenv.mkDerivation {
|
||||
|
||||
preInstall =
|
||||
if gt68xxFirmware != null then
|
||||
"mkdir -p \${out}/share/sane/gt68xx ; ln -s " + firmware.fw +
|
||||
" \${out}/share/sane/gt68xx/" + firmware.name
|
||||
"mkdir -p \${out}/share/sane/gt68xx ; ln -s " + gt68xxFirmware.fw +
|
||||
" \${out}/share/sane/gt68xx/" + gt68xxFirmware.name
|
||||
else if snapscanFirmware != null then
|
||||
"mkdir -p \${out}/share/sane/snapscan ; ln -s " + snapscanFirmware +
|
||||
" \${out}/share/sane/snapscan/your-firmwarefile.bin"
|
||||
|
Loading…
Reference in New Issue
Block a user