Skip to content

Commit

Permalink
rclone: add filesystem helpers (NixOS#258487)
Browse files Browse the repository at this point in the history
This adds two symlinks to rclone: rclonefs and mount.rclone

fixes NixOS#258478
  • Loading branch information
PaulGrandperrin authored Oct 21, 2023
1 parent 4d513ab commit a26cc51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/applications/networking/sync/rclone/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a26cc51

Please sign in to comment.