cups: fix #24339: broken paths in cups-config
Note: this doesn't fix cups-dymo by itself. It causes a slightly nontrivial rebuild on Linux.
This commit is contained in:
parent
6ef630a125
commit
036f4b2f04
@ -79,7 +79,12 @@ stdenv.mkDerivation rec {
|
|||||||
# Delete obsolete stuff that conflicts with cups-filters.
|
# Delete obsolete stuff that conflicts with cups-filters.
|
||||||
rm -rf $out/share/cups/banners $out/share/cups/data/testprint
|
rm -rf $out/share/cups/banners $out/share/cups/data/testprint
|
||||||
|
|
||||||
|
# Some outputs in cups-config were unexpanded and some even wrong.
|
||||||
moveToOutput bin/cups-config "$dev"
|
moveToOutput bin/cups-config "$dev"
|
||||||
|
sed -e "/^cups_serverbin=/s|\$(lib)|$out|" \
|
||||||
|
-e "s|\$(out)|$out|" \
|
||||||
|
-e "s|\$(lib)|$lib|" \
|
||||||
|
-i "$dev/bin/cups-config"
|
||||||
|
|
||||||
# Rename systemd files provided by CUPS
|
# Rename systemd files provided by CUPS
|
||||||
for f in "$out"/lib/systemd/system/*; do
|
for f in "$out"/lib/systemd/system/*; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user