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 in 91 { 92 name = 93 - (lib.strings.removePrefix "tree-sitter-" 94 - (lib.strings.removeSuffix "-grammar" name)) 95 + stdenv.hostPlatform.extensions.sharedLibrary; 96 path = "${drv}/parser"; 97 }
··· 90 in 91 { 92 name = 93 + (lib.strings.replaceStrings ["-"] ["_"] 94 + (lib.strings.removePrefix "tree-sitter-" 95 + (lib.strings.removeSuffix "-grammar" name))) 96 + stdenv.hostPlatform.extensions.sharedLibrary; 97 path = "${drv}/parser"; 98 }