Merge pull request #269207 from NickCao/bpf-linker

bpf-linker: add workaround for #166205
This commit is contained in:
Nick Cao 2023-11-22 13:19:28 -05:00 committed by GitHub
commit 2858c280d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,11 @@ rustPlatform.buildRustPackage rec {
# rust-src and `-Z build-std=core` are required to properly run the tests
doCheck = false;
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
};
meta = with lib; {
description = "Simple BPF static linker";
homepage = "https://github.com/aya-rs/bpf-linker";