Commit dea17be3 authored by figsoda's avatar figsoda
Browse files

topiary: fix build on darwin

parent d4abe32a
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 = ''