apfs-fuse: Let mount find apfs-fuse (#84997)
We add a symlink `mount.fuse.apfs-fuse ~~> apfs-fuse`, so that we can specify `fuse.apfs-fuse` as `fsType` in `nixos` and have the device mounted. The current alternative is to specify: `fuse./run/current-system/sw/bin/apfs-fuse` as `fsType`. On other distros, using `fuse.apfs-fuse` should work since `mount.fuse` will just runs `apfs-fuse`, but on nixos the `PATH` of `mount.fuse` is restricted. The symlink makes it work directly, without having `mount.fuse` doing the dispatch.
This commit is contained in:
parent
c9eaddb48b
commit
5d7bcd5b13
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ stdenv.mkDerivation {
|
|||
buildInputs = [ fuse3 bzip2 zlib attr ];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
postFixup = ''
|
||||
ln -s $out/bin/apfs-fuse $out/bin/mount.fuse.apfs-fuse
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/sgan81/apfs-fuse";
|
||||
description = "FUSE driver for APFS (Apple File System)";
|
||||
|
|
Loading…
Reference in a new issue