diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2024-05-01 17:02:26 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2024-05-02 07:44:30 +0200 |
commit | a48ef6982463206c95a07cdc4e3fc583e9ec5358 (patch) | |
tree | bbce0afc8816bd8b23555d255227da9624d9c57d | |
parent | b4df506a486a8ef2072129ec2cd44e548c041e4b (diff) |
emacs.pkgs.tree-sitter-langs: use stdenv.hostPlatform for sharedLibrary suffix
-rw-r--r-- | pkgs/applications/editors/emacs/elisp-packages/manual-packages/tree-sitter-langs/default.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/applications/editors/emacs/elisp-packages/manual-packages/tree-sitter-langs/default.nix b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/tree-sitter-langs/default.nix index cb4cec172bac1..f8a0ec28a3a2e 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/manual-packages/tree-sitter-langs/default.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/tree-sitter-langs/default.nix @@ -16,9 +16,8 @@ let inherit (melpaStablePackages) tree-sitter-langs; - libSuffix = if stdenv.isDarwin then "dylib" else "so"; langName = g: lib.removeSuffix "-grammar" (lib.removePrefix "tree-sitter-" g.pname); - soName = g: langName g + "." + libSuffix; + soName = g: langName g + stdenv.hostPlatform.extensions.sharedLibrary; grammarDir = runCommand "emacs-tree-sitter-grammars" { # Fake same version number as upstream language bundle to prevent triggering runtime downloads |