topiary: fix build on darwin

This commit is contained in:
figsoda 2023-11-20 13:12:20 -05:00
parent d4abe32acd
commit dea17be39e

View File

@ -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 = ''