Merge pull request #10564 from yochai/master

mfcj470dw: init at 3.0.0-1

goibhniu 55d80762 1bdf372a

+52
+50
pkgs/misc/cups/drivers/mfcj470dw/default.nix
··· 1 + {stdenv, fetchurl, cups, dpkg, ghostscript, patchelf, bash, file}: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "mfcj470dw-cupswrapper-${version}"; 5 + version = "3.0.0-1"; 6 + 7 + srcs = 8 + [ (fetchurl { 9 + url = "http://download.brother.com/welcome/dlf006843/mfcj470dwlpr-${version}.i386.deb"; 10 + sha256 = "7202dd895d38d50bb767080f2995ed350eed99bc2b7871452c3c915c8eefc30a"; 11 + }) 12 + (fetchurl { 13 + url = "http://download.brother.com/welcome/dlf006845/mfcj470dwcupswrapper-${version}.i386.deb"; 14 + sha256 = "92af9024e821159eccd78a8925fc77fb92b4f247f2d2c824ca303004077076a7"; 15 + }) 16 + ]; 17 + 18 + buildInputs = [ dpkg cups patchelf bash ]; 19 + 20 + unpackPhase = "true"; 21 + 22 + installPhase = '' 23 + for s in $srcs; do dpkg-deb -x $s $out; done 24 + 25 + substituteInPlace $out/opt/brother/Printers/mfcj470dw/cupswrapper/cupswrappermfcj470dw \ 26 + --replace /opt "$out/opt" \ 27 + --replace /usr "$out/usr" \ 28 + --replace /etc "$out/etc" 29 + 30 + substituteInPlace $out/opt/brother/Printers/mfcj470dw/lpd/filtermfcj470dw \ 31 + --replace /opt "$out/opt" \ 32 + --replace file "/run/current-system/sw/bin/file" 33 + 34 + sed -i '/GHOST_SCRIPT=/c\GHOST_SCRIPT=gs' $out/opt/brother/Printers/mfcj470dw/lpd/psconvertij2 35 + 36 + patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/lpd/brmfcj470dwfilter 37 + patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/cupswrapper/brcupsconfpt1 38 + 39 + mkdir -p $out/lib/cups/filter/ 40 + ln -s $out/opt/brother/Printers/mfcj470dw/lpd/filtermfcj470dw $out/lib/cups/filter/brother_lpdwrapper_mfcj470dw 41 + ''; 42 + 43 + meta = { 44 + homepage = http://www.brother.com/; 45 + description = "Driver for brother mfcj470dw pritners to print over WiFi and USB."; 46 + license = stdenv.lib.licenses.unfree; 47 + platforms = stdenv.lib.platforms.linux; 48 + downloadPage = http://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=mfcj470dw_us_eu_as&os=128; 49 + }; 50 + }
+2
pkgs/top-level/all-packages.nix
··· 14994 14994 sails = callPackage ../misc/sails { }; 14995 14995 14996 14996 canon-cups-ufr2 = callPackage ../misc/cups/drivers/canon { }; 14997 + 14998 + mfcj470dw = callPackage_i686 ../misc/cups/drivers/mfcj470dw { }; 14997 14999 14998 15000 samsungUnifiedLinuxDriver = callPackage ../misc/cups/drivers/samsung { 14999 15001 gcc = import ../development/compilers/gcc/4.4 {