mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 09:44:18 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
1.1 KiB
Nix
29 lines
1.1 KiB
Nix
{ lib, stdenv, callPackage, fetchpatch }:
|
|
|
|
let mkSSHFS = args: callPackage (import ./common.nix args) { };
|
|
in if stdenv.hostPlatform.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;
|
|
}
|