14 stdenv.mkDerivation rec {
15 pname = "mfc9140cdnlpr";
19 url = "https://download.brother.com/welcome/dlf100405/${pname}-${version}.i386.deb";
20 sha256 = "1wqx8njrv078fc3vlq90qyrfg3cw9kr9m6f3qvfnkhq1f95fbslh";
35 dir=$out/opt/brother/Printers/mfc9140cdn
37 patchelf --set-interpreter ${pkgsi686Linux.glibc.out}/lib/ld-linux.so.2 $dir/lpd/brmfc9140cdnfilter
39 wrapProgram $dir/inf/setupPrintcapij \
40 --prefix PATH : ${lib.makeBinPath [
44 substituteInPlace $dir/lpd/filtermfc9140cdn \
45 --replace "BR_CFG_PATH=" "BR_CFG_PATH=\"$dir/\" #" \
46 --replace "BR_LPD_PATH=" "BR_LPD_PATH=\"$dir/\" #"
48 wrapProgram $dir/lpd/filtermfc9140cdn \
49 --prefix PATH : ${lib.makeBinPath [
56 substituteInPlace $dir/lpd/psconvertij2 \
57 --replace '`which gs`' "${ghostscript}/bin/gs"
59 wrapProgram $dir/lpd/psconvertij2 \
60 --prefix PATH : ${lib.makeBinPath [
67 description = "Brother MFC-9140CDN LPR printer driver";
68 homepage = "http://www.brother.com/";
69 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
70 license = licenses.unfree;
71 maintainers = with maintainers; [ hexa ];
72 platforms = [ "i686-linux" "x86_64-linux" ];