onedriver: fix systemd service (closes #291608)

This commit is contained in:
Massimo Gengarelli 2024-02-26 20:15:39 +01:00
parent 7dd3d6c1d0
commit 3e153863b5

View File

@ -40,6 +40,7 @@ buildGoModule {
install -Dm644 ./pkg/resources/onedriver-128.png $out/share/icons/onedriver/onedriver-128.png
install -Dm644 ./pkg/resources/onedriver.desktop $out/share/applications/onedriver.desktop
install -Dm644 ./pkg/resources/onedriver@.service $out/lib/systemd/user/onedriver@.service
mkdir -p $out/share/man/man1
installManPage ./pkg/resources/onedriver.1
@ -47,6 +48,10 @@ buildGoModule {
substituteInPlace $out/share/applications/onedriver.desktop \
--replace "/usr/bin/onedriver-launcher" "$out/bin/onedriver-launcher" \
--replace "/usr/share/icons" "$out/share/icons"
substituteInPlace $out/lib/systemd/user/onedriver@.service \
--replace "/usr/bin/onedriver" "$out/bin/onedriver" \
--replace "/usr/bin/fusermount" "${fuse}/bin/fusermount"
'';
meta = with lib; {