mfcj470dw-cupswrapper: fixed issue #147793

+11 -5
+11 -5
pkgs/misc/cups/drivers/mfcj470dwcupswrapper/default.nix
··· 21 21 --replace /etc "$out/etc" 22 22 23 23 substituteInPlace $WRAPPER \ 24 - --replace "\`cp " "\`cp -p " \ 25 - --replace "\`mv " "\`cp -p " 24 + --replace "cp " "cp -p " 26 25 ''; 27 26 28 27 buildPhase = '' ··· 33 32 34 33 installPhase = '' 35 34 TARGETFOLDER=$out/opt/brother/Printers/mfcj470dw/cupswrapper/ 36 - mkdir -p $out/opt/brother/Printers/mfcj470dw/cupswrapper/ 35 + PPDFOLDER=$out/share/cups/model/ 36 + FILTERFOLDER=$out/lib/cups/filter/ 37 + 38 + mkdir -p $TARGETFOLDER 39 + mkdir -p $PPDFOLDER 40 + mkdir -p $FILTERFOLDER 37 41 38 42 cp brcupsconfpt1/brcupsconfpt1 $TARGETFOLDER 39 - cp cupswrapper/cupswrappermfcj470dw $TARGETFOLDER/ 40 - cp PPD/brother_mfcj470dw_printer_en.ppd $TARGETFOLDER/ 43 + cp cupswrapper/cupswrappermfcj470dw $TARGETFOLDER 44 + cp PPD/brother_mfcj470dw_printer_en.ppd $PPDFOLDER 45 + 46 + ln -s ${mfcj470dwlpr}/lib/cups/filter/brother_lpdwrapper_mfcj470dw $FILTERFOLDER/ 41 47 ''; 42 48 43 49 cleanPhase = ''