tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mfcj470dw-cupswrapper: fixed issue #147793
Yochai Meir
4 years ago
52e1479f
29d1f6e1
+11
-5
1 changed file
expand all
collapse all
unified
split
pkgs
misc
cups
drivers
mfcj470dwcupswrapper
default.nix
+11
-5
pkgs/misc/cups/drivers/mfcj470dwcupswrapper/default.nix
···
21
--replace /etc "$out/etc"
22
23
substituteInPlace $WRAPPER \
24
-
--replace "\`cp " "\`cp -p " \
25
-
--replace "\`mv " "\`cp -p "
26
'';
27
28
buildPhase = ''
···
33
34
installPhase = ''
35
TARGETFOLDER=$out/opt/brother/Printers/mfcj470dw/cupswrapper/
36
-
mkdir -p $out/opt/brother/Printers/mfcj470dw/cupswrapper/
0
0
0
0
0
37
38
cp brcupsconfpt1/brcupsconfpt1 $TARGETFOLDER
39
-
cp cupswrapper/cupswrappermfcj470dw $TARGETFOLDER/
40
-
cp PPD/brother_mfcj470dw_printer_en.ppd $TARGETFOLDER/
0
0
41
'';
42
43
cleanPhase = ''
···
21
--replace /etc "$out/etc"
22
23
substituteInPlace $WRAPPER \
24
+
--replace "cp " "cp -p "
0
25
'';
26
27
buildPhase = ''
···
32
33
installPhase = ''
34
TARGETFOLDER=$out/opt/brother/Printers/mfcj470dw/cupswrapper/
35
+
PPDFOLDER=$out/share/cups/model/
36
+
FILTERFOLDER=$out/lib/cups/filter/
37
+
38
+
mkdir -p $TARGETFOLDER
39
+
mkdir -p $PPDFOLDER
40
+
mkdir -p $FILTERFOLDER
41
42
cp brcupsconfpt1/brcupsconfpt1 $TARGETFOLDER
43
+
cp cupswrapper/cupswrappermfcj470dw $TARGETFOLDER
44
+
cp PPD/brother_mfcj470dw_printer_en.ppd $PPDFOLDER
45
+
46
+
ln -s ${mfcj470dwlpr}/lib/cups/filter/brother_lpdwrapper_mfcj470dw $FILTERFOLDER/
47
'';
48
49
cleanPhase = ''