rclone: add filesystem helpers (#258487)

This adds two symlinks to rclone: rclonefs and mount.rclone

fixes #258478
This commit is contained in:
Paul Grandperrin 2023-10-21 20:45:18 +02:00 committed by GitHub
parent 4d513ab5f1
commit a26cc51f23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.