Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #268894 from eth3lbert/ast-grep-clang16

ast-grep: fix build with clang 12+

authored by Nick Cao and committed by GitHub 20953fd9 1707bcc9

+5
+5
pkgs/by-name/as/ast-grep/package.nix
··· 17 17 18 18 cargoHash = "sha256-OFNqBkPAKaSqDQUWisupj6FlDbm3kw0xq5nbvj04H5U="; 19 19 20 + # Work around https://github.com/NixOS/nixpkgs/issues/166205. 21 + env = lib.optionalAttrs stdenv.cc.isClang { 22 + NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}"; 23 + }; 24 + 20 25 # error: linker `aarch64-linux-gnu-gcc` not found 21 26 postPatch = '' 22 27 rm .cargo/config.toml