brscan5: fix pkg and nixos module (#523273)

This commit is contained in:
Sandro
2026-07-18 17:08:55 +00:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -58,17 +58,17 @@ stdenv.mkDerivation {
dontConfigure = true;
buildPhase = ''
TARGET_DIR="$out/etc/opt/brother/scanner/brscan5"
TARGET_DIR="$out/tmp"
mkdir -p "$TARGET_DIR"
cp -rp "./models" "$TARGET_DIR"
cp -rp "./brscan5.ini" "$TARGET_DIR"
cp -rp "./brsanenetdevice.cfg" "$TARGET_DIR"
export NIX_REDIRECTS="/etc/opt/brother/scanner/brscan5/=$TARGET_DIR/"
printf '${addAllNetDev netDevices}\n'
${addAllNetDev netDevices}
mkdir -p "$out/etc/opt/brother/scanner/brscan5"
mv -T "$TARGET_DIR" "$out/etc/opt/brother/scanner/brscan5"
'';
dontInstall = true;

View File

@@ -109,7 +109,7 @@ stdenv.mkDerivation rec {
makeWrapper \
"$out/$PATH_TO_BRSCAN5/brsaneconfig5" \
"$out/bin/brsaneconfig5" \
--suffix-each NIX_REDIRECT ":" "/etc/opt/brother/scanner/brscan5=$out/opt/brother/scanner/brscan5 /opt/brother/scanner/brscan5=$out/opt/brother/scanner/brscan5" \
--suffix-each NIX_REDIRECTS ":" "/etc/opt/brother/scanner/brscan5=$out/opt/brother/scanner/brscan5 /opt/brother/scanner/brscan5=$out/opt/brother/scanner/brscan5" \
--set LD_PRELOAD ${libredirect}/lib/libredirect.so
mkdir -p $out/etc/sane.d/dll.d