Merge pull request #14010 from yochai/master

mfcj470dw: fix missing file error

joachifm 25a1e5d5 59caca43

+14 -3
+14 -3
pkgs/misc/cups/drivers/mfcj470dw/default.nix
··· 1 - { stdenv, fetchurl, cups, dpkg, ghostscript, patchelf, bash, file }: 1 + { stdenv, fetchurl, cups, dpkg, ghostscript, patchelf, a2ps, coreutils, gnused, gawk, file }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "mfcj470dw-cupswrapper-${version}"; ··· 15 15 }) 16 16 ]; 17 17 18 - buildInputs = [ dpkg cups patchelf bash ]; 18 + buildInputs = [ cups ghostscript dpkg a2ps ]; 19 19 20 20 unpackPhase = "true"; 21 21 ··· 29 29 30 30 substituteInPlace $out/opt/brother/Printers/mfcj470dw/lpd/filtermfcj470dw \ 31 31 --replace /opt "$out/opt" \ 32 - --replace file "/run/current-system/sw/bin/file" 32 + --replace file "${file}/bin/file" \ 33 + --replace sed "${gnused}/bin/sed" \ 34 + --replace mktemp "${coreutils}/bin/mktemp" \ 35 + --replace cat "${coreutils}/bin/cat" \ 36 + --replace rm "${coreutils}/bin/rm" 33 37 34 38 sed -i '/GHOST_SCRIPT=/c\GHOST_SCRIPT=gs' $out/opt/brother/Printers/mfcj470dw/lpd/psconvertij2 39 + substituteInPlace $out/opt/brother/Printers/mfcj470dw/lpd/psconvertij2 \ 40 + --replace awk "${gawk}/bin/awk" \ 41 + --replace cat "${coreutils}/bin/cat" \ 42 + --replace mktemp "${coreutils}/bin/mktemp" \ 43 + --replace sed "${gnused}/bin/sed" \ 44 + --replace expr "${coreutils}/bin/expr" \ 45 + --replace rm "${coreutils}/bin/rm" 35 46 36 47 patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/lpd/brmfcj470dwfilter 37 48 patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/cupswrapper/brcupsconfpt1