summary refs log tree commit diff
diff options
context:
space:
mode:
authorMayeul d'Avezac <2745737+mdavezac@users.noreply.github.com>2022-02-04 21:00:50 +0000
committerMayeul d'Avezac <2745737+mdavezac@users.noreply.github.com>2022-02-04 21:10:46 +0000
commitae6bb2fcf8166424b36308e8ac4e696dac6147b9 (patch)
tree7ac4a5294e94e9887b285f09909781d0aea8e032
parent7f3473534d47af832cd255ec8ff52ec5fb8274b2 (diff)
downloadnixpkgs-ae6bb2fcf8166424b36308e8ac4e696dac6147b9.tar
nixpkgs-ae6bb2fcf8166424b36308e8ac4e696dac6147b9.tar.gz
nixpkgs-ae6bb2fcf8166424b36308e8ac4e696dac6147b9.tar.bz2
nixpkgs-ae6bb2fcf8166424b36308e8ac4e696dac6147b9.tar.lz
nixpkgs-ae6bb2fcf8166424b36308e8ac4e696dac6147b9.tar.xz
nixpkgs-ae6bb2fcf8166424b36308e8ac4e696dac6147b9.tar.zst
nixpkgs-ae6bb2fcf8166424b36308e8ac4e696dac6147b9.zip
treesitter grammars: on darwin should use .so suffix
The files are compiled with -shared rather than  -dynamiclib and are
BUNDLE.
-rw-r--r--pkgs/development/tools/parsing/tree-sitter/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/tools/parsing/tree-sitter/default.nix b/pkgs/development/tools/parsing/tree-sitter/default.nix
index dfed3c91bc5..1e9cf0f20a9 100644
--- a/pkgs/development/tools/parsing/tree-sitter/default.nix
+++ b/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";
           }
         )