diff options
author | Nick Cao <nickcao@nichi.co> | 2023-11-21 08:57:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-21 08:57:59 -0500 |
commit | 20953fd99d3d25d501facac8f28e266f482fc3af (patch) | |
tree | b3ea143323253d2df20ed7e45925ae979f0cf3c3 | |
parent | 1707bcc94e60d5b3a128e3a1d6591351deba0208 (diff) | |
parent | 8bba01f0347f662dcf4f15d82bed86ea26c0ac4f (diff) |
Merge pull request #268894 from eth3lbert/ast-grep-clang16
ast-grep: fix build with clang 12+
-rw-r--r-- | pkgs/by-name/as/ast-grep/package.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/by-name/as/ast-grep/package.nix b/pkgs/by-name/as/ast-grep/package.nix index b1979b00b0819..226174fd85c4e 100644 --- a/pkgs/by-name/as/ast-grep/package.nix +++ b/pkgs/by-name/as/ast-grep/package.nix @@ -17,6 +17,11 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-OFNqBkPAKaSqDQUWisupj6FlDbm3kw0xq5nbvj04H5U="; + # Work around https://github.com/NixOS/nixpkgs/issues/166205. + env = lib.optionalAttrs stdenv.cc.isClang { + NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; + }; + # error: linker `aarch64-linux-gnu-gcc` not found postPatch = '' rm .cargo/config.toml |