tree-sitter: only strip on Linux

This commit is contained in:
Ben Siraphob 2021-11-07 22:23:56 -06:00
parent 1e6d3c55f0
commit 7d6c626a39
No known key found for this signature in database
GPG Key ID: 45F0E5D788143267

View File

@ -51,10 +51,10 @@ stdenv.mkDerivation rec {
runHook postInstall runHook postInstall
''; '';
# Auto strip cannot detect files missing extension. # Strip failed on darwin: strip: error: symbols referenced by indirect symbol table entries that can't be stripped
fixupPhase = '' fixupPhase = lib.optionalString stdenv.isLinux ''
runHook preFixup runHook preFixup
strip -s $out/parser $STRIP $out/parser
runHook postFixup runHook postFixup
''; '';
} }