Skip to content

Commit

Permalink
cups-brother-dcpl3550cdw: init at 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Tert0 committed Dec 25, 2024
1 parent 03fbae7 commit c4d5e62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22307,6 +22307,11 @@
githubId = 159372832;
keys = [ { fingerprint = "6F54 C08C 37C8 EC78 15FA 0D01 A721 8CBA 2D80 15C3"; } ];
};
Tert0 = {
name = "Tert0";
github = "Tert0";
githubId = 62036464;
};
tesq0 = {
email = "[email protected]";
github = "tesq0";
Expand Down
7 changes: 6 additions & 1 deletion pkgs/by-name/cu/cups-brother-dcpl3550cdw/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ stdenv.mkDerivation {
unpackPhase = "dpkg-deb -x $src $out";

installPhase = ''
runHook preInstall
substituteInPlace $out/opt/brother/Printers/${model}/lpd/filter_${model} \
--replace-fail /usr/bin/perl ${perl}/bin/perl \
--replace-fail "PRINTER =~" "PRINTER = \"${model}\"; #" \
Expand All @@ -53,6 +55,8 @@ stdenv.mkDerivation {
ln -s $out/opt/brother/Printers/${model}/lpd/filter_${model} $out/lib/cups/filter/brlpdwrapper${model}
ln -s $out/opt/brother/Printers/${model}/cupswrapper/brother_lpdwrapper_${model} $out/lib/cups/filter/brother_lpdwrapper_${model}
ln -s $out/opt/brother/Printers/${model}/cupswrapper/brother_${model}_printer_en.ppd $out/share/cups/model/brother_${model}_printer_en.ppd
runHook postInstall
'';

postFixup = ''
Expand Down Expand Up @@ -85,12 +89,13 @@ stdenv.mkDerivation {
meta = with lib; {
homepage = "https://www.brother.com/";
downloadPage = "https://support.brother.com/g/b/downloadlist.aspx?c=eu_ot&lang=en&prod=${model}_eu&os=128";
description = "Brother ${model} printer driver";
description = "Brother DCP-L3550CDW printer driver";
license = licenses.unfreeRedistributable;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
platforms = [
"x86_64-linux"
"i686-linux"
];
maintainers = with maintainers; [ Tert0 ];
};
}

0 comments on commit c4d5e62

Please sign in to comment.