boxfs: add darwin build

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