uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
73
pkgs/misc/cups/drivers/mfc9140cdnlpr/default.nix
Normal file
73
pkgs/misc/cups/drivers/mfc9140cdnlpr/default.nix
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, dpkg
|
||||
, makeWrapper
|
||||
, coreutils
|
||||
, file
|
||||
, gawk
|
||||
, ghostscript
|
||||
, gnused
|
||||
, pkgsi686Linux
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mfc9140cdnlpr";
|
||||
version = "1.1.2-1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.brother.com/welcome/dlf100405/${pname}-${version}.i386.deb";
|
||||
sha256 = "1wqx8njrv078fc3vlq90qyrfg3cw9kr9m6f3qvfnkhq1f95fbslh";
|
||||
};
|
||||
|
||||
unpackPhase = ''
|
||||
dpkg-deb -x $src $out
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
dir=$out/opt/brother/Printers/mfc9140cdn
|
||||
|
||||
patchelf --set-interpreter ${pkgsi686Linux.glibc.out}/lib/ld-linux.so.2 $dir/lpd/brmfc9140cdnfilter
|
||||
|
||||
wrapProgram $dir/inf/setupPrintcapij \
|
||||
--prefix PATH : ${lib.makeBinPath [
|
||||
coreutils
|
||||
]}
|
||||
|
||||
substituteInPlace $dir/lpd/filtermfc9140cdn \
|
||||
--replace "BR_CFG_PATH=" "BR_CFG_PATH=\"$dir/\" #" \
|
||||
--replace "BR_LPD_PATH=" "BR_LPD_PATH=\"$dir/\" #"
|
||||
|
||||
wrapProgram $dir/lpd/filtermfc9140cdn \
|
||||
--prefix PATH : ${lib.makeBinPath [
|
||||
coreutils
|
||||
file
|
||||
ghostscript
|
||||
gnused
|
||||
]}
|
||||
|
||||
substituteInPlace $dir/lpd/psconvertij2 \
|
||||
--replace '`which gs`' "${ghostscript}/bin/gs"
|
||||
|
||||
wrapProgram $dir/lpd/psconvertij2 \
|
||||
--prefix PATH : ${lib.makeBinPath [
|
||||
gnused
|
||||
gawk
|
||||
]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Brother MFC-9140CDN LPR printer driver";
|
||||
homepage = "http://www.brother.com/";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue