Merge pull request #268788 from figsoda/topiary

topiary: fix build on darwin
This commit is contained in:
Robert Scott
2023-11-20 23:07:03 +00:00
committed by GitHub
@@ -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 = ''