treesitter grammars: on darwin should use .so suffix

The files are compiled with -shared rather than  -dynamiclib and are
BUNDLE.
This commit is contained in:
Mayeul d'Avezac
2022-02-04 21:10:46 +00:00
parent 7f3473534d
commit ae6bb2fcf8
@@ -95,7 +95,7 @@ let
(lib.strings.replaceStrings [ "-" ] [ "_" ]
(lib.strings.removePrefix "tree-sitter-"
(lib.strings.removeSuffix "-grammar" name)))
+ stdenv.hostPlatform.extensions.sharedLibrary;
+ ".so";
path = "${drv}/parser";
}
)