Unverified Commit 2858c280 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #269207 from NickCao/bpf-linker

bpf-linker: add workaround for #166205
parents 82cba6b8 9b158afe
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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";