summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2023-11-20 23:07:03 +0000
committerGitHub <noreply@github.com>2023-11-20 23:07:03 +0000
commitfeae8388e0a43944af59e129b315cbca919d3d98 (patch)
tree5dc894559e401e93936acc232ce3ac90856670d7 /pkgs
parenta126a8545a4acb8d7c91acbc1ed7dfb3c24a1e86 (diff)
parentdea17be39e52a82613b538141acbbcb70ae87020 (diff)
Merge pull request #268788 from figsoda/topiary
topiary: fix build on darwin
Diffstat (limited to 'pkgs')
-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 = ''