treesitter grammars: on darwin should use .so suffix

The files are compiled with -shared rather than  -dynamiclib and are
BUNDLE.
main
Mayeul d'Avezac 2 years ago
parent 7f3473534d
commit ae6bb2fcf8
No known key found for this signature in database
GPG Key ID: 791F0EAEC0AACBCD
  1. 2
      pkgs/development/tools/parsing/tree-sitter/default.nix

@ -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";
}
)

Loading…
Cancel
Save