Skip to content

Commit

Permalink
cups: fix #24339: broken paths in cups-config
Browse files Browse the repository at this point in the history
Note: this doesn't fix cups-dymo by itself.
It causes a slightly nontrivial rebuild on Linux.
  • Loading branch information
vcunat committed Mar 27, 2017
1 parent 6ef630a commit 036f4b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/misc/cups/default.nix
Expand Up @@ -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
Expand Down

0 comments on commit 036f4b2

Please sign in to comment.