Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #35134 from xeji/mfcl2720dw

mfcl2720dwlpr / mfcl2720dwcupswrapper: init at 3.2.0-1

authored by Jörg Thalheim and committed by GitHub d4385d7f b6cad725

+96
+1
lib/maintainers.nix
··· 765 765 wscott = "Wayne Scott <wsc9tt@gmail.com>"; 766 766 wyvie = "Elijah Rum <elijahrum@gmail.com>"; 767 767 xaverdh = "Dominik Xaver Hörl <hoe.dom@gmx.de>"; 768 + xeji = "xeji <xeji@cat3.de>"; 768 769 xnwdd = "Guillermo NWDD <nwdd+nixos@no.team>"; 769 770 xurei = "Olivier Bourdoux <olivier.bourdoux@gmail.com>"; 770 771 xvapx = "Marti Serra <marti.serra.coscollano@gmail.com>";
+47
pkgs/misc/cups/drivers/mfcl2720dwcupswrapper/default.nix
··· 1 + { stdenv, fetchurl, dpkg, makeWrapper, coreutils, gnugrep, gnused, perl, mfcl2720dwlpr }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "mfcl2720dwcupswrapper-${version}"; 5 + version = "3.2.0-1"; 6 + 7 + src = fetchurl { 8 + url = "http://download.brother.com/welcome/dlf101802/${name}.i386.deb"; 9 + sha256 = "6d131926ce22c51b1854d2b91e426cc7ecbf5d6dabd698ef51a417090e35c598"; 10 + }; 11 + 12 + nativeBuildInputs = [ dpkg makeWrapper ]; 13 + 14 + phases = [ "installPhase" ]; 15 + 16 + installPhase = '' 17 + dpkg-deb -x $src $out 18 + 19 + basedir=${mfcl2720dwlpr}/opt/brother/Printers/MFCL2720DW 20 + dir=$out/opt/brother/Printers/MFCL2720DW 21 + 22 + substituteInPlace $dir/cupswrapper/brother_lpdwrapper_MFCL2720DW \ 23 + --replace /usr/bin/perl ${perl}/bin/perl \ 24 + --replace "basedir =~" "basedir = \"$basedir\"; #" \ 25 + --replace "PRINTER =~" "PRINTER = \"MFCL2720DW\"; #" 26 + 27 + substituteInPlace $dir/cupswrapper/paperconfigml1 \ 28 + --replace /usr/bin/perl ${perl}/bin/perl 29 + 30 + wrapProgram $dir/cupswrapper/brother_lpdwrapper_MFCL2720DW \ 31 + --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils gnugrep gnused ]} 32 + 33 + mkdir -p $out/lib/cups/filter 34 + mkdir -p $out/share/cups/model 35 + 36 + ln $dir/cupswrapper/brother_lpdwrapper_MFCL2720DW $out/lib/cups/filter 37 + ln $dir/cupswrapper/brother-MFCL2720DW-cups-en.ppd $out/share/cups/model 38 + ''; 39 + 40 + meta = { 41 + description = "Brother MFC-L2720DW CUPS wrapper driver"; 42 + homepage = http://www.brother.com/; 43 + license = stdenv.lib.licenses.gpl2; 44 + platforms = [ "x86_64-linux" "i686-linux" ]; 45 + maintainers = [ stdenv.lib.maintainers.xeji ]; 46 + }; 47 + }
+45
pkgs/misc/cups/drivers/mfcl2720dwlpr/default.nix
··· 1 + { pkgs, stdenv, fetchurl, dpkg, makeWrapper, coreutils, ghostscript, gnugrep, gnused, which, perl }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "mfcl2720dwlpr-${version}"; 5 + version = "3.2.0-1"; 6 + 7 + src = fetchurl { 8 + url = "http://download.brother.com/welcome/dlf101801/${name}.i386.deb"; 9 + sha256 = "088217e9ad118ec1e7f3d3f8f60f3bd839fe2c7d7c1136b249e9ac648dc742af"; 10 + }; 11 + 12 + nativeBuildInputs = [ dpkg makeWrapper ]; 13 + 14 + phases = [ "installPhase" ]; 15 + 16 + installPhase = '' 17 + dpkg-deb -x $src $out 18 + 19 + dir=$out/opt/brother/Printers/MFCL2720DW 20 + 21 + substituteInPlace $dir/lpd/filter_MFCL2720DW \ 22 + --replace /usr/bin/perl ${perl}/bin/perl \ 23 + --replace "BR_PRT_PATH =~" "BR_PRT_PATH = \"$dir\"; #" \ 24 + --replace "PRINTER =~" "PRINTER = \"MFCL2720DW\"; #" 25 + 26 + wrapProgram $dir/lpd/filter_MFCL2720DW \ 27 + --prefix PATH : ${stdenv.lib.makeBinPath [ 28 + coreutils ghostscript gnugrep gnused which 29 + ]} 30 + 31 + # need to use i686 glibc here, these are 32bit proprietary binaries 32 + interpreter=${pkgs.pkgsi686Linux.glibc}/lib/ld-linux.so.2 33 + patchelf --set-interpreter "$interpreter" $dir/inf/braddprinter 34 + patchelf --set-interpreter "$interpreter" $dir/lpd/brprintconflsr3 35 + patchelf --set-interpreter "$interpreter" $dir/lpd/rawtobr3 36 + ''; 37 + 38 + meta = { 39 + description = "Brother MFC-L2720DW lpr driver"; 40 + homepage = http://www.brother.com/; 41 + license = stdenv.lib.licenses.unfree; 42 + platforms = [ "x86_64-linux" "i686-linux" ]; 43 + maintainers = [ stdenv.lib.maintainers.xeji ]; 44 + }; 45 + }
+3
pkgs/top-level/all-packages.nix
··· 20293 20293 mfcl2700dncupswrapper = callPackage ../misc/cups/drivers/mfcl2700dncupswrapper { }; 20294 20294 mfcl2700dnlpr = callPackage_i686 ../misc/cups/drivers/mfcl2700dnlpr { }; 20295 20295 20296 + mfcl2720dwcupswrapper = callPackage ../misc/cups/drivers/mfcl2720dwcupswrapper { }; 20297 + mfcl2720dwlpr = callPackage ../misc/cups/drivers/mfcl2720dwlpr { }; 20298 + 20296 20299 samsung-unified-linux-driver_1_00_37 = callPackage ../misc/cups/drivers/samsung { }; 20297 20300 samsung-unified-linux-driver_4_01_17 = callPackage ../misc/cups/drivers/samsung/4.01.17.nix { }; 20298 20301 samsung-unified-linux-driver = callPackage ../misc/cups/drivers/samsung/4.00.39 { };