tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mfc9140cdnlpr: init at 1.1.2-1
Martin Weinelt
4 years ago
f52c8862
8a362be5
+75
2 changed files
expand all
collapse all
unified
split
pkgs
misc
cups
drivers
mfc9140cdnlpr
default.nix
top-level
all-packages.nix
+73
pkgs/misc/cups/drivers/mfc9140cdnlpr/default.nix
···
1
1
+
{ stdenv
2
2
+
, lib
3
3
+
, fetchurl
4
4
+
, dpkg
5
5
+
, makeWrapper
6
6
+
, coreutils
7
7
+
, file
8
8
+
, gawk
9
9
+
, ghostscript
10
10
+
, gnused
11
11
+
, pkgsi686Linux
12
12
+
}:
13
13
+
14
14
+
stdenv.mkDerivation rec {
15
15
+
pname = "mfc9140cdnlpr";
16
16
+
version = "1.1.2-1";
17
17
+
18
18
+
src = fetchurl {
19
19
+
url = "https://download.brother.com/welcome/dlf100405/${pname}-${version}.i386.deb";
20
20
+
sha256 = "1wqx8njrv078fc3vlq90qyrfg3cw9kr9m6f3qvfnkhq1f95fbslh";
21
21
+
};
22
22
+
23
23
+
unpackPhase = ''
24
24
+
dpkg-deb -x $src $out
25
25
+
'';
26
26
+
27
27
+
nativeBuildInputs = [
28
28
+
dpkg
29
29
+
makeWrapper
30
30
+
];
31
31
+
32
32
+
dontBuild = true;
33
33
+
34
34
+
installPhase = ''
35
35
+
dir=$out/opt/brother/Printers/mfc9140cdn
36
36
+
37
37
+
patchelf --set-interpreter ${pkgsi686Linux.glibc.out}/lib/ld-linux.so.2 $dir/lpd/brmfc9140cdnfilter
38
38
+
39
39
+
wrapProgram $dir/inf/setupPrintcapij \
40
40
+
--prefix PATH : ${lib.makeBinPath [
41
41
+
coreutils
42
42
+
]}
43
43
+
44
44
+
substituteInPlace $dir/lpd/filtermfc9140cdn \
45
45
+
--replace "BR_CFG_PATH=" "BR_CFG_PATH=\"$dir/\" #" \
46
46
+
--replace "BR_LPD_PATH=" "BR_LPD_PATH=\"$dir/\" #"
47
47
+
48
48
+
wrapProgram $dir/lpd/filtermfc9140cdn \
49
49
+
--prefix PATH : ${lib.makeBinPath [
50
50
+
coreutils
51
51
+
file
52
52
+
ghostscript
53
53
+
gnused
54
54
+
]}
55
55
+
56
56
+
substituteInPlace $dir/lpd/psconvertij2 \
57
57
+
--replace '`which gs`' "${ghostscript}/bin/gs"
58
58
+
59
59
+
wrapProgram $dir/lpd/psconvertij2 \
60
60
+
--prefix PATH : ${lib.makeBinPath [
61
61
+
gnused
62
62
+
gawk
63
63
+
]}
64
64
+
'';
65
65
+
66
66
+
meta = with lib; {
67
67
+
description = "Brother MFC-9140CDN LPR printer driver";
68
68
+
homepage = "http://www.brother.com/";
69
69
+
license = licenses.unfree;
70
70
+
maintainers = with maintainers; [ hexa ];
71
71
+
platforms = [ "i686-linux" "x86_64-linux" ];
72
72
+
};
73
73
+
}
+2
pkgs/top-level/all-packages.nix
···
31132
31132
mfcl8690cdwcupswrapper = callPackage ../misc/cups/drivers/mfcl8690cdwcupswrapper { };
31133
31133
mfcl8690cdwlpr = callPackage ../misc/cups/drivers/mfcl8690cdwlpr { };
31134
31134
31135
31135
+
mfc9140cdnlpr = callPackage ../misc/cups/drivers/mfc9140cdnlpr { };
31136
31136
+
31135
31137
samsung-unified-linux-driver_1_00_36 = callPackage ../misc/cups/drivers/samsung/1.00.36/default.nix { };
31136
31138
samsung-unified-linux-driver_1_00_37 = callPackage ../misc/cups/drivers/samsung/1.00.37.nix { };
31137
31139
samsung-unified-linux-driver_4_00_39 = callPackage ../misc/cups/drivers/samsung/4.00.39 { };