mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
tree-sitter: only strip on Linux
This commit is contained in:
parent
1e6d3c55f0
commit
7d6c626a39
@ -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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user