15 stdenv.mkDerivation rec {
16 pname = "mfcl2700dnlpr";
20 url = "https://download.brother.com/welcome/dlf102085/${pname}-${version}.i386.deb";
21 sha256 = "170qdzxlqikzvv2wphvfb37m19mn13az4aj88md87ka3rl5knk4m";
34 dir=$out/opt/brother/Printers/MFCL2700DN
36 substituteInPlace $dir/lpd/filter_MFCL2700DN \
37 --replace /usr/bin/perl ${perl}/bin/perl \
38 --replace "BR_PRT_PATH =~" "BR_PRT_PATH = \"$dir\"; #" \
39 --replace "PRINTER =~" "PRINTER = \"MFCL2700DN\"; #"
41 wrapProgram $dir/lpd/filter_MFCL2700DN \
52 interpreter=$(cat $NIX_CC/nix-support/dynamic-linker)
53 patchelf --set-interpreter "$interpreter" $dir/inf/braddprinter
54 patchelf --set-interpreter "$interpreter" $dir/lpd/brprintconflsr3
55 patchelf --set-interpreter "$interpreter" $dir/lpd/rawtobr3
59 description = "Brother MFC-L2700DN LPR driver";
60 homepage = "http://www.brother.com/";
61 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
62 license = lib.licenses.unfree;
63 maintainers = [ lib.maintainers.tv ];
64 platforms = [ "i686-linux" ];