diff options
author | Bernardo Meurer <bernardo@meurer.org> | 2021-11-07 22:30:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-07 22:30:40 -0800 |
commit | 2de888a972be0747c29a23de73a092fd0e558677 (patch) | |
tree | 61c11fc7287a7a0eb31e92665cc18ccadd30a4a5 | |
parent | 363f590140f3c735f239a204b5c635c7e6edb6ae (diff) | |
parent | 7d6c626a3963525e7e9697776c90b5d382fab22c (diff) |
Merge pull request #145030 from siraben/tree-sitter-fix-darwin
tree-sitter: only strip on Linux
-rw-r--r-- | pkgs/development/tools/parsing/tree-sitter/grammar.nix | 6 |
1 files 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 d0265a584b379..96486c0c2b508 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 ''; } |