mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
onedriver: fix systemd service (closes #291608)
This commit is contained in:
parent
7dd3d6c1d0
commit
3e153863b5
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user