Merge pull request #136367 from LavaDesu/tsgrammar-fix

tree-sitter: replace hyphens with underscores in .withPlugins

authored by

figsoda and committed by
GitHub
9b57dc35 177c0bef

+3 -2
+3 -2
pkgs/development/tools/parsing/tree-sitter/default.nix
··· 90 90 in 91 91 { 92 92 name = 93 - (lib.strings.removePrefix "tree-sitter-" 94 - (lib.strings.removeSuffix "-grammar" name)) 93 + (lib.strings.replaceStrings ["-"] ["_"] 94 + (lib.strings.removePrefix "tree-sitter-" 95 + (lib.strings.removeSuffix "-grammar" name))) 95 96 + stdenv.hostPlatform.extensions.sharedLibrary; 96 97 path = "${drv}/parser"; 97 98 }