summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2023-11-20 22:01:28 +0000
committerGitHub <noreply@github.com>2023-11-20 22:01:28 +0000
commit71d28bf1ae55faeb9f0332767b53ae7d2765d808 (patch)
treea68f9ab0172804664ee25868aa52bf68da589fed /pkgs
parent9ec596ce5d1a21894fb0731c4a2d81b1df712b03 (diff)
parent98f1f6ea7b9c151d0849894f946eefa8924da53c (diff)
Merge pull request #268776 from figsoda/bfc
bfc: fix build on darwin
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/compilers/bfc/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/compilers/bfc/default.nix b/pkgs/development/compilers/bfc/default.nix
index f84026d443f2b..2ebf02b18138f 100644
--- a/pkgs/development/compilers/bfc/default.nix
+++ b/pkgs/development/compilers/bfc/default.nix
@@ -29,6 +29,9 @@ rustPlatform.buildRustPackage rec {
 
   env = {
     LLVM_SYS_130_PREFIX = llvmPackages_13.llvm.dev;
+  } // lib.optionalAttrs stdenv.cc.isClang {
+    # Work around https://github.com/NixOS/nixpkgs/issues/166205.
+    NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
   };
 
   # process didn't exit successfully: <...> SIGSEGV