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

tree-sitter: only strip on Linux
This commit is contained in:
Bernardo Meurer 2021-11-07 22:30:40 -08:00 committed by GitHub
commit 2de888a972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,10 +51,10 @@ stdenv.mkDerivation rec {
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
'';
}