mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
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.
|
||||
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"
|
||||
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
|
||||
for f in "$out"/lib/systemd/system/*; do
|
||||
|
Loading…
Reference in New Issue
Block a user