boxfs: add darwin build

+5 -2
+5 -2
pkgs/tools/filesystems/boxfs/default.nix
··· 37 buildInputs = [ curl fuse libxml2 ]; 38 nativeBuildInputs = [ pkg-config ]; 39 40 - buildFlags = [ "static" ]; 41 42 installPhase = '' 43 mkdir -p $out/bin ··· 55 ''; 56 homepage = "https://github.com/drotiro/boxfs2"; 57 license = licenses.gpl3; 58 - platforms = platforms.linux; 59 }; 60 }
··· 37 buildInputs = [ curl fuse libxml2 ]; 38 nativeBuildInputs = [ pkg-config ]; 39 40 + buildFlags = [ 41 + "static" 42 + "CC=${stdenv.cc.targetPrefix}cc" 43 + ] ++ lib.optional stdenv.isDarwin "CFLAGS=-D_BSD_SOURCE"; 44 45 installPhase = '' 46 mkdir -p $out/bin ··· 58 ''; 59 homepage = "https://github.com/drotiro/boxfs2"; 60 license = licenses.gpl3; 61 + platforms = platforms.unix; 62 }; 63 }