mfcl8690cdw: init lpdr and cupswrapper at 1.0.2/1.0.3 (#43968)

Provide printer driver for Brother MFC-L8690CDW.

authored by Thomas Bach and committed by xeji 7e60f1c6 c2649439

+93
+45
pkgs/misc/cups/drivers/mfcl8690cdwcupswrapper/default.nix
··· 1 + { coreutils, dpkg, fetchurl, gnugrep, gnused, makeWrapper, 2 + mfcl8690cdwlpr, perl, stdenv}: 3 + 4 + stdenv.mkDerivation rec { 5 + name = "mfcl8690cdwcupswrapper-${version}"; 6 + version = "1.3.0-0"; 7 + 8 + src = fetchurl { 9 + url = "http://download.brother.com/welcome/dlf103250/${name}.i386.deb"; 10 + sha256 = "16nnh3hd5yv0m4191wja9fvxxzngzfccfj2rfhcswbakajyk5ywn"; 11 + }; 12 + 13 + nativeBuildInputs = [ dpkg makeWrapper ]; 14 + 15 + phases = [ "installPhase" ]; 16 + 17 + installPhase = '' 18 + dpkg-deb -x $src $out 19 + 20 + basedir=${mfcl8690cdwlpr}/opt/brother/Printers/mfcl8690cdw 21 + dir=$out/opt/brother/Printers/mfcl8690cdw 22 + 23 + substituteInPlace $dir/cupswrapper/brother_lpdwrapper_mfcl8690cdw \ 24 + --replace /usr/bin/perl ${perl}/bin/perl \ 25 + --replace "basedir =~" "basedir = \"$basedir/\"; #" \ 26 + --replace "PRINTER =~" "PRINTER = \"mfcl8690cdw\"; #" 27 + 28 + wrapProgram $dir/cupswrapper/brother_lpdwrapper_mfcl8690cdw \ 29 + --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gnugrep gnused ]} 30 + 31 + mkdir -p $out/lib/cups/filter 32 + mkdir -p $out/share/cups/model 33 + 34 + ln $dir/cupswrapper/brother_lpdwrapper_mfcl8690cdw $out/lib/cups/filter 35 + ln $dir/cupswrapper/brother_mfcl8690cdw_printer_en.ppd $out/share/cups/model 36 + ''; 37 + 38 + meta = { 39 + description = "Brother MFC-L8690CDW CUPS wrapper driver"; 40 + homepage = http://www.brother.com/; 41 + license = stdenv.lib.licenses.unfree; 42 + platforms = stdenv.lib.platforms.linux; 43 + maintainers = [ stdenv.lib.maintainers.fuzzy-id ]; 44 + }; 45 + }
+45
pkgs/misc/cups/drivers/mfcl8690cdwlpr/default.nix
··· 1 + { coreutils, dpkg, fetchurl, file, ghostscript, gnugrep, gnused, 2 + makeWrapper, perl, pkgs, stdenv, which }: 3 + 4 + stdenv.mkDerivation rec { 5 + name = "mfcl8690cdwlpr-${version}"; 6 + version = "1.2.0-0"; 7 + 8 + src = fetchurl { 9 + url = "http://download.brother.com/welcome/dlf103241/${name}.i386.deb"; 10 + sha256 = "02k43nh51pn4lf7gaid9yhil0a3ikpy4krw7dhgphmm5pap907sx"; 11 + }; 12 + 13 + nativeBuildInputs = [ dpkg makeWrapper ]; 14 + 15 + phases = [ "installPhase" ]; 16 + 17 + installPhase = '' 18 + dpkg-deb -x $src $out 19 + 20 + dir=$out/opt/brother/Printers/mfcl8690cdw 21 + filter=$dir/lpd/filter_mfcl8690cdw 22 + 23 + substituteInPlace $filter \ 24 + --replace /usr/bin/perl ${perl}/bin/perl \ 25 + --replace "BR_PRT_PATH =~" "BR_PRT_PATH = \"$dir/\"; #" \ 26 + --replace "PRINTER =~" "PRINTER = \"mfcl8690cdw\"; #" 27 + 28 + wrapProgram $filter \ 29 + --prefix PATH : ${stdenv.lib.makeBinPath [ 30 + coreutils file ghostscript gnugrep gnused which 31 + ]} 32 + 33 + # need to use i686 glibc here, these are 32bit proprietary binaries 34 + interpreter=${pkgs.pkgsi686Linux.glibc}/lib/ld-linux.so.2 35 + patchelf --set-interpreter "$interpreter" $dir/lpd/brmfcl8690cdwfilter 36 + ''; 37 + 38 + meta = { 39 + description = "Brother MFC-L8690CDW LPR printer driver"; 40 + homepage = http://www.brother.com/; 41 + license = stdenv.lib.licenses.unfree; 42 + maintainers = [ stdenv.lib.maintainers.fuzzy-id ]; 43 + platforms = [ "i686-linux" ]; 44 + }; 45 + }
+3
pkgs/top-level/all-packages.nix
··· 21597 21597 mfcl2740dwcupswrapper = callPackage ../misc/cups/drivers/mfcl2740dwcupswrapper { }; 21598 21598 mfcl2740dwlpr = callPackage ../misc/cups/drivers/mfcl2740dwlpr { }; 21599 21599 21600 + mfcl8690cdwcupswrapper = callPackage ../misc/cups/drivers/mfcl8690cdwcupswrapper { }; 21601 + mfcl8690cdwlpr = callPackage ../misc/cups/drivers/mfcl8690cdwlpr { }; 21602 + 21600 21603 samsung-unified-linux-driver_1_00_37 = callPackage ../misc/cups/drivers/samsung { }; 21601 21604 samsung-unified-linux-driver_4_01_17 = callPackage ../misc/cups/drivers/samsung/4.01.17.nix { }; 21602 21605 samsung-unified-linux-driver = callPackage ../misc/cups/drivers/samsung/4.00.39 { };