mfcj470dw-cupswrapper: fixed issue #147793

main
Yochai Meir 3 years ago
parent 29d1f6e1f6
commit 52e1479feb
  1. 16
      pkgs/misc/cups/drivers/mfcj470dwcupswrapper/default.nix

@ -21,8 +21,7 @@ stdenv.mkDerivation rec {
--replace /etc "$out/etc"
substituteInPlace $WRAPPER \
--replace "\`cp " "\`cp -p " \
--replace "\`mv " "\`cp -p "
--replace "cp " "cp -p "
'';
buildPhase = ''
@ -33,11 +32,18 @@ stdenv.mkDerivation rec {
installPhase = ''
TARGETFOLDER=$out/opt/brother/Printers/mfcj470dw/cupswrapper/
mkdir -p $out/opt/brother/Printers/mfcj470dw/cupswrapper/
PPDFOLDER=$out/share/cups/model/
FILTERFOLDER=$out/lib/cups/filter/
mkdir -p $TARGETFOLDER
mkdir -p $PPDFOLDER
mkdir -p $FILTERFOLDER
cp brcupsconfpt1/brcupsconfpt1 $TARGETFOLDER
cp cupswrapper/cupswrappermfcj470dw $TARGETFOLDER/
cp PPD/brother_mfcj470dw_printer_en.ppd $TARGETFOLDER/
cp cupswrapper/cupswrappermfcj470dw $TARGETFOLDER
cp PPD/brother_mfcj470dw_printer_en.ppd $PPDFOLDER
ln -s ${mfcj470dwlpr}/lib/cups/filter/brother_lpdwrapper_mfcj470dw $FILTERFOLDER/
'';
cleanPhase = ''

Loading…
Cancel
Save