From 7d6c626a3963525e7e9697776c90b5d382fab22c Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Sun, 7 Nov 2021 22:23:56 -0600 Subject: [PATCH] tree-sitter: only strip on Linux --- pkgs/development/tools/parsing/tree-sitter/grammar.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/parsing/tree-sitter/grammar.nix b/pkgs/development/tools/parsing/tree-sitter/grammar.nix index d0265a584b37..96486c0c2b50 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammar.nix +++ b/pkgs/development/tools/parsing/tree-sitter/grammar.nix @@ -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 ''; }