nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 callPackage, 5 fetchpatch, 6}: 7 8let 9 mkSSHFS = args: callPackage (import ./common.nix args) { }; 10in 11if stdenv.hostPlatform.isDarwin then 12 mkSSHFS { 13 version = "2.10"; # macFUSE isn't yet compatible with libfuse 3.x 14 sha256 = "1dmw4kx6vyawcywiv8drrajnam0m29mxfswcp4209qafzx3mjlp1"; 15 patches = [ 16 # remove reference to fuse_darwin.h which doens't exist on recent macFUSE 17 ./fix-fuse-darwin-h.patch 18 19 # From https://github.com/libfuse/sshfs/pull/185: 20 # > With this patch, setting I/O size to a reasonable large value, will 21 # > result in much improved performance, e.g.: -o iosize=1048576 22 (fetchpatch { 23 name = "fix-configurable-blksize.patch"; 24 url = "https://github.com/libfuse/sshfs/commit/667cf34622e2e873db776791df275c7a582d6295.patch"; 25 sha256 = "0d65lawd2g2aisk1rw2vl65dgxywf4vqgv765n9zj9zysyya8a54"; 26 }) 27 ]; 28 platforms = lib.platforms.darwin; 29 } 30else 31 mkSSHFS { 32 version = "3.7.3"; 33 sha256 = "0s2hilqixjmv4y8n67zaq374sgnbscp95lgz5ignp69g3p1vmhwz"; 34 platforms = lib.platforms.linux; 35 }