Merge pull request #145030 from siraben/tree-sitter-fix-darwin

tree-sitter: only strip on Linux

Changed files
+3 -3
pkgs
development
tools
parsing
tree-sitter
+3 -3
pkgs/development/tools/parsing/tree-sitter/grammar.nix
···
runHook postInstall
'';
-
# Auto strip cannot detect files missing extension.
-
fixupPhase = ''
+
# Strip failed on darwin: strip: error: symbols referenced by indirect symbol table entries that can't be stripped
+
fixupPhase = lib.optionalString stdenv.isLinux ''
runHook preFixup
-
strip -s $out/parser
+
$STRIP $out/parser
runHook postFixup
'';
}