summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-11-20 13:12:20 -0500
committerfigsoda <figsoda@pm.me>2023-11-20 13:12:20 -0500
commitdea17be39e52a82613b538141acbbcb70ae87020 (patch)
treebc5a6d72de0ee7b2319e276232352e714d7c101d /pkgs/development/tools
parentd4abe32acd7840e7a02b90758323797799746cc5 (diff)
topiary: fix build on darwin
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/misc/topiary/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/topiary/default.nix b/pkgs/development/tools/misc/topiary/default.nix
index 2128115165baa..cb4f3884d79fd 100644
--- a/pkgs/development/tools/misc/topiary/default.nix
+++ b/pkgs/development/tools/misc/topiary/default.nix
@@ -1,6 +1,7 @@
 { lib
 , rustPlatform
 , fetchFromGitHub
+, stdenv
 , nix-update-script
 }:
 
@@ -36,6 +37,9 @@ rustPlatform.buildRustPackage rec {
 
   env = {
     TOPIARY_LANGUAGE_DIR = "${placeholder "out"}/share/queries";
+  } // lib.optionalAttrs stdenv.cc.isClang {
+    # Work around https://github.com/NixOS/nixpkgs/issues/166205.
+    NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
   };
 
   postInstall = ''