bindfs: enable darwin

This commit is contained in:
Konstantin Alekseev 2021-03-07 01:48:55 +03:00
parent f066807b58
commit 7c3f2c0ed6

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fuse, pkg-config }:
{ lib, stdenv, fetchurl, fuse, pkg-config, osxfuse }:
stdenv.mkDerivation rec {
version = "1.15.1";
@ -10,7 +10,9 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ fuse ];
buildInputs = if stdenv.isDarwin
then [ osxfuse ]
else [ fuse ];
postFixup = ''
ln -s $out/bin/bindfs $out/bin/mount.fuse.bindfs
'';