about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Grandperrin <paul.grandperrin@gmail.com>2023-10-21 20:45:18 +0200
committerGitHub <noreply@github.com>2023-10-21 20:45:18 +0200
commita26cc51f231fdb21e312feeb84d013b6b7851153 (patch)
tree4a512c0e4a5c72cc8afca24819cd7b7c7906ce2f
parent4d513ab5f170d66afa3387bdd718d41aa936ee9f (diff)
rclone: add filesystem helpers (#258487)
This adds two symlinks to rclone: rclonefs and mount.rclone

fixes #258478
-rw-r--r--pkgs/applications/networking/sync/rclone/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/networking/sync/rclone/default.nix b/pkgs/applications/networking/sync/rclone/default.nix
index 2e6dd8fa7fde5..cad0829b9c2bb 100644
--- a/pkgs/applications/networking/sync/rclone/default.nix
+++ b/pkgs/applications/networking/sync/rclone/default.nix
@@ -41,6 +41,10 @@ buildGoModule rec {
         ${rcloneBin}/bin/rclone genautocomplete $shell rclone.$shell
         installShellCompletion rclone.$shell
       done
+
+      # filesystem helpers
+      ln -s $out/bin/rclone $out/bin/rclonefs
+      ln -s $out/bin/rclone $out/bin/mount.rclone
     '' + lib.optionalString (enableCmount && !stdenv.isDarwin)
       # use --suffix here to ensure we don't shadow /run/wrappers/bin/fusermount,
       # as the setuid wrapper is required as non-root on NixOS.