Merge pull request #268788 from figsoda/topiary
topiary: fix build on darwin
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user