sane-config: Merge /etc/sane.d/dll.conf content.
This commit is contained in:
parent
ef721079ca
commit
f8caa49f00
@ -4,17 +4,27 @@
|
|||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
let installSanePath = path: ''
|
let installSanePath = path: ''
|
||||||
find "${path}/lib/sane" -not -type d -maxdepth 1 | while read backend; do
|
if test -e "${path}/lib/sane"; then
|
||||||
ln -s $backend $out/lib/sane/$(basename $backend)
|
find "${path}/lib/sane" -not -type d -maxdepth 1 | while read backend; do
|
||||||
done
|
ln -s $backend $out/lib/sane/$(basename $backend)
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
find "${path}/etc/sane.d" -not -type d -maxdepth 1 | while read conf; do
|
if test -e "${path}/etc/sane.d"; then
|
||||||
ln -s $conf $out/etc/sane.d/$(basename $conf)
|
find "${path}/etc/sane.d" -not -type d -maxdepth 1 | while read conf; do
|
||||||
done
|
if test $(basename $conf) = "dll.conf"; then
|
||||||
|
cat $conf >> $out/etc/sane.d/dll.conf
|
||||||
|
else
|
||||||
|
ln -s $conf $out/etc/sane.d/$(basename $conf)
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
find "${path}/etc/sane.d/dll.d" -not -type d -maxdepth 1 | while read conf; do
|
if test -e "${path}/etc/sane.d/dll.d"; then
|
||||||
ln -s $conf $out/etc/sane.d/dll.d/$(basename $conf)
|
find "${path}/etc/sane.d/dll.d" -not -type d -maxdepth 1 | while read conf; do
|
||||||
done
|
ln -s $conf $out/etc/sane.d/dll.d/$(basename $conf)
|
||||||
|
done
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
Loading…
Reference in New Issue
Block a user