bindfs: fix macos build by disabling system binding

This adds `--disable-macos-fs-link` to configureFlags on darwin
platforms, removing /etc/fstab and `mount -t bindfs` support.

This isn't ideal, but is better than the tool not building at all.
This commit is contained in:
Denbeigh Stevens 2024-07-27 01:35:46 -07:00
parent 6c3df72002
commit 3d54e5af5c

View File

@ -21,6 +21,8 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = if stdenv.isDarwin then [ fuse ] else [ fuse3 ];
configureFlags = lib.optional stdenv.isDarwin "--disable-macos-fs-link";
postFixup = ''
ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs
'';
@ -32,6 +34,5 @@ stdenv.mkDerivation (finalAttrs: {
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ lovek323 lovesegfault ];
platforms = lib.platforms.unix;
broken = stdenv.isDarwin; # last successful build 2023-11-17
};
})