From 904913ee1635be1f5528d740b16b85b7d88bcad2 Mon Sep 17 00:00:00 2001 From: Ivan Petkov Date: Mon, 11 Dec 2023 10:26:17 -0800 Subject: [PATCH] dump_syms: fix building with LLVM 16 Builds were broken on Darwin with https://github.com/nixos/nixpkgs/pull/241692, so this applies the workaround from https://github.com/nixos/nixpkgs/issues/166205 --- pkgs/development/tools/dump_syms/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/dump_syms/default.nix b/pkgs/development/tools/dump_syms/default.nix index 7cfb93d9b719..a5dab42219f8 100644 --- a/pkgs/development/tools/dump_syms/default.nix +++ b/pkgs/development/tools/dump_syms/default.nix @@ -30,6 +30,11 @@ rustPlatform.buildRustPackage { cargoSha256 = "sha256-5WiGckh/jq7AHH3JWZL8tIsj1Gqr8iLX7IyppKsW96k="; + # Workaround for https://github.com/nixos/nixpkgs/issues/166205 + env = lib.optionalAttrs stdenv.cc.isClang { + NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; + }; + nativeBuildInputs = [ pkg-config ];