fuse: use macfuse-stubs instead on Darwin #117360
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation for this change
Replaces the Linux-only
fuse
package withmacfuse-stubs
on Darwin. This should further increase the number of FUSE packages available on Darwin, although more fixes would probably be needed on a per-package basis.macfuse-stubs
should mostly work as a drop-in replacement forfuse
. However, it isn't yet compatible with libfuse 3.x, so packages that depends onfuse3
would still be unsupported on Darwin.It should be noted that macFUSE would need to be installed outside of Nix in order to run FUSE packages. macFUSE isn't packaged in Nix because it includes a kernel extension, which isn't supported by Nix outside of NixOS. I don't know how best to warn users of this, but I added brief explanation in the
longDescription
ofmacfuse-stubs
.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)