Unverified Commit feae8388 authored by Robert Scott's avatar Robert Scott Committed by GitHub
Browse files

Merge pull request #268788 from figsoda/topiary

topiary: fix build on darwin
parents a126a854 dea17be3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
{ 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 = ''