brscan5: fix hardware.sane.brscan5 config

This commit is contained in:
shouya
2026-05-23 19:24:51 +09:00
parent 8e48ed193d
commit 90c3d4d814
@@ -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;