14 stdenv.mkDerivation rec {
15 pname = "mfc465cnlpr";
19 url = "https://download.brother.com/welcome/dlf006132/${pname}-${version}.i386.deb";
20 sha256 = "cfe0289510bf36bee6014286ea78b1ebc6bbb948dbfd3aee02f0664a7743f99b";
35 dir=$out/usr/local/Brother/Printer/mfc465cn
36 patchelf --set-interpreter ${pkgsi686Linux.glibc.out}/lib/ld-linux.so.2 $dir/lpd/brmfc465cnfilter
37 wrapProgram $dir/inf/setupPrintcapij \
38 --prefix PATH : ${lib.makeBinPath [
41 substituteInPlace $dir/lpd/filtermfc465cn \
42 --replace "BR_PRT_PATH=" "BR_PRT_PATH=\"$dir/\" #"
43 wrapProgram $dir/lpd/filtermfc465cn \
44 --prefix PATH : ${lib.makeBinPath [
50 substituteInPlace $dir/lpd/psconvertij2 \
51 --replace '`which gs`' "${ghostscript}/bin/gs"
52 wrapProgram $dir/lpd/psconvertij2 \
53 --prefix PATH : ${lib.makeBinPath [
57 chmod -R a+w $dir/inf/
61 description = "Brother MFC-465CN LPR printer driver";
62 homepage = "http://www.brother.com/";
63 license = licenses.unfree;
64 maintainers = with maintainers; [ phrogg ];
65 platforms = [ "i686-linux" "x86_64-linux" ];