diff --git a/third_party/tvl/tools/cheddar/default.nix b/third_party/tvl/tools/cheddar/default.nix index 17efae91ff..4e0c64384f 100644 --- a/third_party/tvl/tools/cheddar/default.nix +++ b/third_party/tvl/tools/cheddar/default.nix @@ -8,6 +8,8 @@ depot.third_party.naersk.buildPackage { # Use our custom bat syntax set, which is everything from upstream, # plus additional languages we care about. BAT_SYNTAXES = "${depot.third_party.bat_syntaxes}"; + + NIX_LDFLAGS = "${x.NIX_LDFLAGS or ""}${pkgs.lib.optionalString (pkgs.stdenv.isLinux && pkgs.stdenv.isAarch64 && pkgs.stdenv.cc.isGNU) " -lgcc"}"; }; passthru = {