mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:50:44 +08:00
nixGL: patch systemd and d-bus services references
This commit is contained in:
committed by
Austin Horstman
parent
7eca7f7081
commit
91cdb0e2d5
@@ -274,6 +274,26 @@ in
|
||||
sed "s|${pkg.out}|$out|g" "$src" > "$dsk"
|
||||
done
|
||||
|
||||
# Patch systemd user services
|
||||
for svc in "$out/share/systemd/user"/*.service ; do
|
||||
if ! grep -q "${pkg.out}" "$svc"; then
|
||||
continue
|
||||
fi
|
||||
src="$(readlink "$svc")"
|
||||
rm "$svc"
|
||||
sed "s|${pkg.out}|$out|g" "$src" > "$svc"
|
||||
done
|
||||
|
||||
# Patch DBus services
|
||||
for svc in "$out/share/dbus-1/services"/*.service ; do
|
||||
if ! grep -q "${pkg.out}" "$svc"; then
|
||||
continue
|
||||
fi
|
||||
src="$(readlink "$svc")"
|
||||
rm "$svc"
|
||||
sed "s|${pkg.out}|$out|g" "$src" > "$svc"
|
||||
done
|
||||
|
||||
shopt -u nullglob # Revert nullglob back to its normal default state
|
||||
'';
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user