tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mfcj6510dwlpr: use new xxd package instead of vim
Peter Hoeg
8 years ago
0345aed9
dcd64679
+7
-7
1 changed file
expand all
collapse all
unified
split
pkgs
misc
cups
drivers
mfcj6510dwlpr
default.nix
+7
-7
pkgs/misc/cups/drivers/mfcj6510dwlpr/default.nix
···
1
-
{ stdenv, fetchurl, pkgsi686Linux, dpkg, makeWrapper, coreutils, gnused, gawk, file, cups, patchelf, utillinux, vimNox
2
, ghostscript, a2ps }:
3
4
# Why:
···
61
${utillinux}/bin/hexdump -ve '1/1 "%.2X"' $out/usr/bin/brprintconf_mfcj6510dw | \
62
sed 's.2F6F70742F62726F746865722F5072696E746572732F25732F696E662F6272257366756E63.62726d66636a36353130647766756e63000000000000000000000000000000000000000000.' | \
63
sed 's.2F6F70742F62726F746865722F5072696E746572732F25732F696E662F627225737263.62726D66636A3635313064777263000000000000000000000000000000000000000000.' | \
64
-
${vimNox}/bin/xxd -r -p > $out/usr/bin/brprintconf_mfcj6510dw_patched
65
chmod +x $out/usr/bin/brprintconf_mfcj6510dw_patched
66
#executing from current dir. segfaults if it's not r\w.
67
mkdir -p $out/bin
···
79
'';
80
81
meta = with stdenv.lib; {
82
-
homepage = http://www.brother.com/;
83
-
description = "Brother MFC-J6510DW LPR driver";
84
-
license = with licenses; unfree;
85
-
platforms = with platforms; linux;
86
downloadPage = http://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=mfcj6510dw_all&os=128;
87
-
maintainers = with maintainers; [ ramkromberg ];
0
0
0
88
};
89
}
···
1
+
{ stdenv, fetchurl, pkgsi686Linux, dpkg, makeWrapper, coreutils, gnused, gawk, file, cups, patchelf, utillinux, xxd
2
, ghostscript, a2ps }:
3
4
# Why:
···
61
${utillinux}/bin/hexdump -ve '1/1 "%.2X"' $out/usr/bin/brprintconf_mfcj6510dw | \
62
sed 's.2F6F70742F62726F746865722F5072696E746572732F25732F696E662F6272257366756E63.62726d66636a36353130647766756e63000000000000000000000000000000000000000000.' | \
63
sed 's.2F6F70742F62726F746865722F5072696E746572732F25732F696E662F627225737263.62726D66636A3635313064777263000000000000000000000000000000000000000000.' | \
64
+
${xxd}/bin/xxd -r -p > $out/usr/bin/brprintconf_mfcj6510dw_patched
65
chmod +x $out/usr/bin/brprintconf_mfcj6510dw_patched
66
#executing from current dir. segfaults if it's not r\w.
67
mkdir -p $out/bin
···
79
'';
80
81
meta = with stdenv.lib; {
82
+
description = "Brother MFC-J6510DW LPR driver";
0
0
0
83
downloadPage = http://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=mfcj6510dw_all&os=128;
84
+
homepage = http://www.brother.com/;
85
+
license = with licenses; unfree;
86
+
maintainers = with maintainers; [ ramkromberg ];
87
+
platforms = with platforms; linux;
88
};
89
}