mfcl2740dwcupswrapper: init at 3.2.0-1

CUPS wrapper for Brother MFC-L2740DW

+46
+45
pkgs/misc/cups/drivers/mfcl2740dwcupswrapper/default.nix
··· 1 + { stdenv, fetchurl, dpkg, makeWrapper, coreutils, gnugrep, gnused, perl, mfcl2740dwlpr }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "mfcl2740dwcupswrapper-${version}"; 5 + version = "3.2.0-1"; 6 + 7 + src = fetchurl { 8 + url = "https://download.brother.com/welcome/dlf101726/${name}.i386.deb"; 9 + sha256 = "078453e19f20ab6c7fc4d63c3e09f162f3d1410c04c23a294b6ffbd720b35ffb"; 10 + }; 11 + 12 + nativeBuildInputs = [ dpkg makeWrapper ]; 13 + 14 + unpackPhase = "dpkg-deb -x $src $out"; 15 + 16 + installPhase = '' 17 + basedir=${mfcl2740dwlpr}/opt/brother/Printers/MFCL2740DW 18 + dir=$out/opt/brother/Printers/MFCL2740DW 19 + 20 + substituteInPlace $dir/cupswrapper/brother_lpdwrapper_MFCL2740DW \ 21 + --replace /usr/bin/perl ${perl}/bin/perl \ 22 + --replace "basedir =~" "basedir = \"$basedir\"; #" \ 23 + --replace "PRINTER =~" "PRINTER = \"MFCL2740DW\"; #" 24 + 25 + substituteInPlace $dir/cupswrapper/paperconfigml1 \ 26 + --replace /usr/bin/perl ${perl}/bin/perl 27 + 28 + wrapProgram $dir/cupswrapper/brother_lpdwrapper_MFCL2740DW \ 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_MFCL2740DW $out/lib/cups/filter 35 + ln $dir/cupswrapper/brother-MFCL2740DW-cups-en.ppd $out/share/cups/model 36 + ''; 37 + 38 + meta = { 39 + description = "Brother MFC-L2740DW CUPS wrapper driver"; 40 + homepage = http://www.brother.com/; 41 + license = stdenv.lib.licenses.gpl2; 42 + platforms = [ "x86_64-linux" "i686-linux" ]; 43 + maintainers = [ stdenv.lib.maintainers.enzime ]; 44 + }; 45 + }
+1
pkgs/top-level/all-packages.nix
··· 21393 21393 mfcl2720dwcupswrapper = callPackage ../misc/cups/drivers/mfcl2720dwcupswrapper { }; 21394 21394 mfcl2720dwlpr = callPackage ../misc/cups/drivers/mfcl2720dwlpr { }; 21395 21395 21396 + mfcl2740dwcupswrapper = callPackage ../misc/cups/drivers/mfcl2740dwcupswrapper { }; 21396 21397 mfcl2740dwlpr = callPackage ../misc/cups/drivers/mfcl2740dwlpr { }; 21397 21398 21398 21399 samsung-unified-linux-driver_1_00_37 = callPackage ../misc/cups/drivers/samsung { };