Merge pull request #115319 from kalekseev/macos/bindfs

bindfs: enable darwin
This commit is contained in:
Bernardo Meurer 2021-03-08 10:06:03 +00:00 committed by GitHub
commit a6aaf54b39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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