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:
Daniel Gorin 2020-10-09 14:55:56 +01:00 committed by GitHub
parent c9eaddb48b
commit 5d7bcd5b13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)";