nixGL: patch systemd and d-bus services references
This commit is contained in:
parent
7eca7f7081
commit
91cdb0e2d5
1 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
'';
|
||||
}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue