15 stdenv.mkDerivation rec {
16 pname = "mfc5890cnlpr";
20 url = "https://download.brother.com/welcome/dlf006168/${pname}-${version}.i386.deb";
21 sha256 = "119h3s1p9pv83mrfv6cmxpc0v33xf8c9nw5clj9yafv3aizxy6dp";
36 dir=$out/usr/local/Brother/Printer/mfc5890cn
38 patchelf --set-interpreter ${pkgsi686Linux.glibc.out}/lib/ld-linux.so.2 $dir/lpd/brmfc5890cnfilter
40 wrapProgram $dir/inf/setupPrintcapij \
41 --prefix PATH : ${lib.makeBinPath [
45 substituteInPlace $dir/lpd/filtermfc5890cn \
46 --replace "/usr/" "$out/usr/"
48 wrapProgram $dir/lpd/filtermfc5890cn \
49 --prefix PATH : ${lib.makeBinPath [
57 substituteInPlace $dir/lpd/psconvertij2 \
58 --replace '`which gs`' "${ghostscript}/bin/gs"
60 wrapProgram $dir/lpd/psconvertij2 \
61 --prefix PATH : ${lib.makeBinPath [
68 description = "Brother MFC-5890CN LPR printer driver";
69 homepage = "http://www.brother.com/";
70 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
71 license = licenses.unfree;
72 maintainers = with maintainers; [ martinramm ];
73 platforms = [ "i686-linux" "x86_64-linux" ];