diff options
author | Daniel Gorin <jcpetruzza@gmail.com> | 2020-10-09 14:55:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 09:55:56 -0400 |
commit | 5d7bcd5b1350b0779563c4cbf8c7424b908a9529 (patch) | |
tree | 3fcaf0da9df29c7097ea5f98f22aa0a52cc6d01b /pkgs/tools/filesystems | |
parent | c9eaddb48b169939f4cee30a796cf55fd9e10a06 (diff) |
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.
Diffstat (limited to 'pkgs/tools/filesystems')
-rw-r--r-- | pkgs/tools/filesystems/apfs-fuse/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/apfs-fuse/default.nix b/pkgs/tools/filesystems/apfs-fuse/default.nix index 2c7b1c271569..32cde83d749a 100644 --- a/pkgs/tools/filesystems/apfs-fuse/default.nix +++ b/pkgs/tools/filesystems/apfs-fuse/default.nix @@ -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)"; |