@@ -5,6 +5,7 @@
55, callPackage
66, enableShared ? true
77, enableStatic ? false
8+, Security
89}:
910
1011# TODO: move to carnix or https://github.com/kolloch/crate2nix
@@ -51,6 +52,8 @@ in rustPlatform.buildRustPackage {
5152 pname = "tree-sitter";
5253 inherit src version cargoSha256;
5354
55+ buildInputs = lib.optionals stdenv.isDarwin [ Security ];
56+
5457 nativeBuildInputs = [ emscripten which ];
5558
5659 postPatch = ''
@@ -103,9 +106,8 @@ in rustPlatform.buildRustPackage {
103106 '';
104107 license = lib.licenses.mit;
105108 maintainers = with lib.maintainers; [ Profpatsch ];
106− # Darwin needs some more work with default libraries
107109 # Aarch has test failures with how tree-sitter compiles the generated C files
108− broken = stdenv.isDarwin || stdenv.isAarch64;
110+ broken = stdenv.isAarch64;
109111 };
110112
111113}