3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/filesystems/sshfs-fuse/default.nix
Michael Weiss 6566612899
sshfs: 3.7.2 -> 3.7.3
https://github.com/libfuse/sshfs/releases/tag/sshfs-3.7.3:
> This is the last release from the current maintainer. SSHFS is now no
> longer maintained or developed. Github issue tracking and pull
> requests have therefore been disabled. The mailing list (see below) is
> still available for use.
>
> If you would like to take over this project, you are welcome to do so.
> Please fork it and develop the fork for a while. Once there has been 6
> months of reasonable activity, please contact Nikolaus@rath.org and
> I'll be happy to give you ownership of this repository or replace with
> a pointer to the fork.
2022-06-12 12:30:32 +02:00

29 lines
1 KiB
Nix

{ lib, stdenv, callPackage, fetchpatch }:
let mkSSHFS = args: callPackage (import ./common.nix args) { };
in if stdenv.isDarwin then
mkSSHFS {
version = "2.10"; # macFUSE isn't yet compatible with libfuse 3.x
sha256 = "1dmw4kx6vyawcywiv8drrajnam0m29mxfswcp4209qafzx3mjlp1";
patches = [
# remove reference to fuse_darwin.h which doens't exist on recent macFUSE
./fix-fuse-darwin-h.patch
# From https://github.com/libfuse/sshfs/pull/185:
# > With this patch, setting I/O size to a reasonable large value, will
# > result in much improved performance, e.g.: -o iosize=1048576
(fetchpatch {
name = "fix-configurable-blksize.patch";
url = "https://github.com/libfuse/sshfs/commit/667cf34622e2e873db776791df275c7a582d6295.patch";
sha256 = "0d65lawd2g2aisk1rw2vl65dgxywf4vqgv765n9zj9zysyya8a54";
})
];
platforms = lib.platforms.darwin;
}
else
mkSSHFS {
version = "3.7.3";
sha256 = "0s2hilqixjmv4y8n67zaq374sgnbscp95lgz5ignp69g3p1vmhwz";
platforms = lib.platforms.linux;
}