From b741df943fbe7dbbf8d2f295f9aaa0ce3991a5d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 18 Jun 2016 16:57:08 +0200 Subject: [PATCH] system-config-printer: unbreak dbus service (again) The service file refers to /usr/bin/... instead of a Nix store path. Fix it. The original fix was wrongly removed in commit 03353ce6ff738acce3d ("system-config-printer: 1.3.12 -> 1 5.7"). We can remove this fixup on the _next_ upstream release. --- pkgs/tools/misc/system-config-printer/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/misc/system-config-printer/default.nix b/pkgs/tools/misc/system-config-printer/default.nix index 7ed25fb549b0..b36697ede02d 100644 --- a/pkgs/tools/misc/system-config-printer/default.nix +++ b/pkgs/tools/misc/system-config-printer/default.nix @@ -53,6 +53,9 @@ in stdenv.mkDerivation rec { ( cd $out/share/system-config-printer/troubleshoot mv .__init__.py-wrapped __init__.py ) + + # The below line will be unneeded when the next upstream release arrives. + sed -i -e "s|/usr/bin|$out/bin|" "$out/share/dbus-1/services/org.fedoraproject.Config.Printing.service" ''; meta = {