Merge pull request #145030 from siraben/tree-sitter-fix-darwin
tree-sitter: only strip on Linux
commit2de888a972be0747c29a23de73a092fd0e558677
authorBernardo Meurer <bernardo@meurer.org>
dateSun 7 Nov 2021, 22:30 (5 years ago)
parent363f5907d6c626
pkgs/development/tools/parsing/tree-sitter/grammar.nix+3−3
@@ -51,10 +51,10 @@ stdenv.mkDerivation rec {
5151 runHook postInstall
5252 '';
5353
54− # Auto strip cannot detect files missing extension.
55− fixupPhase = ''
54+ # Strip failed on darwin: strip: error: symbols referenced by indirect symbol table entries that can't be stripped
55+ fixupPhase = lib.optionalString stdenv.isLinux ''
5656 runHook preFixup
57− strip -s $out/parser
57+ $STRIP $out/parser
5858 runHook postFixup
5959 '';
6060}