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:
@@ -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";
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user