feat: introduce treefmt and fmt all
This commit is contained in:
parent
80250b0179
commit
5d5282a914
213 changed files with 4967 additions and 4423 deletions
|
@ -16,7 +16,8 @@
|
|||
file,
|
||||
proot,
|
||||
bash,
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
model = "dcpj4110dw";
|
||||
version = "3.0.1-1";
|
||||
src = fetchurl {
|
||||
|
@ -24,12 +25,16 @@
|
|||
sha256 = "sha256-ryKDsSkabAD2X3WLmeqjdB3+4DXdJ0qUz3O64DV+ixw=";
|
||||
};
|
||||
reldir = "opt/brother/Printers/${model}/";
|
||||
in rec {
|
||||
in
|
||||
rec {
|
||||
driver = pkgsi686Linux.stdenv.mkDerivation rec {
|
||||
inherit src version;
|
||||
name = "${model}drv-${version}";
|
||||
|
||||
nativeBuildInputs = [dpkg makeWrapper];
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
unpackPhase = "dpkg-deb -x $src $out";
|
||||
|
||||
|
@ -45,7 +50,18 @@ in rec {
|
|||
mv $out/${reldir}/lpd/filter${model} $out/${reldir}/lpd/.wrapped_filter${model}
|
||||
|
||||
cat <<-EOF >$out/${reldir}/lpd/.wrapper_inner_filter${model}
|
||||
export PATH=\$PATH:${lib.makeBinPath [gawk file a2ps coreutils ghostscript gnugrep gnused which]}
|
||||
export PATH=\$PATH:${
|
||||
lib.makeBinPath [
|
||||
gawk
|
||||
file
|
||||
a2ps
|
||||
coreutils
|
||||
ghostscript
|
||||
gnugrep
|
||||
gnused
|
||||
which
|
||||
]
|
||||
}
|
||||
exec $out/${reldir}/lpd/.wrapped_filter${model}
|
||||
EOF
|
||||
chmod +x $out/${reldir}/lpd/.wrapper_inner_filter${model}
|
||||
|
@ -64,10 +80,13 @@ in rec {
|
|||
meta = {
|
||||
description = "Brother ${lib.strings.toUpper model} driver";
|
||||
homepage = "http://www.brother.com/";
|
||||
sourceProvenance = with lib.sourceTypes; [binaryNativeCode];
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
# license = lib.licenses.unfree;
|
||||
platforms = ["x86_64-linux" "i686-linux"];
|
||||
maintainers = [lib.maintainers.steveej];
|
||||
platforms = [
|
||||
"x86_64-linux"
|
||||
"i686-linux"
|
||||
];
|
||||
maintainers = [ lib.maintainers.steveej ];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -81,14 +100,29 @@ in rec {
|
|||
|
||||
name = "${model}cupswrapper-${version}";
|
||||
|
||||
nativeBuildInputs = [dpkg makeWrapper];
|
||||
buildInputs = [cups ghostscript a2ps gawk];
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
makeWrapper
|
||||
];
|
||||
buildInputs = [
|
||||
cups
|
||||
ghostscript
|
||||
a2ps
|
||||
gawk
|
||||
];
|
||||
|
||||
unpackPhase = "dpkg-deb -x $src $out";
|
||||
|
||||
installPhase = ''
|
||||
wrapProgram $out/${reldir}/cupswrapper/cupswrapper${model} \
|
||||
--prefix PATH : ${lib.makeBinPath [coreutils ghostscript gnugrep gnused]}
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
coreutils
|
||||
ghostscript
|
||||
gnugrep
|
||||
gnused
|
||||
]
|
||||
}
|
||||
|
||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||
$out/${reldir}/cupswrapper/brcupsconfpt1
|
||||
|
@ -100,10 +134,13 @@ in rec {
|
|||
meta = {
|
||||
description = "Brother ${lib.strings.toUpper model} CUPS wrapper driver";
|
||||
homepage = "http://www.brother.com/";
|
||||
sourceProvenance = with lib.sourceTypes; [binaryNativeCode];
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
license = lib.licenses.gpl2;
|
||||
platforms = ["x86_64-linux" "i686-linux"];
|
||||
maintainers = [lib.maintainers.steveej];
|
||||
platforms = [
|
||||
"x86_64-linux"
|
||||
"i686-linux"
|
||||
];
|
||||
maintainers = [ lib.maintainers.steveej ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue