2021-04-08 16:26:57 +00:00
|
|
|
{ lib, stdenv, callPackage, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
# 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.1";
|
2020-11-12 09:05:59 +00:00
|
|
|
sha256 = "088mgcsqv9f2vly4xn6lvvkmqkgr9jjmjs9qp8938hl7j6rrgd17";
|
2021-04-08 16:26:57 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
}
|