Unverified Commit 7d6c626a authored by Ben Siraphob's avatar Ben Siraphob
Browse files

tree-sitter: only strip on Linux

parent 1e6d3c55
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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
  '';
}