Commit ec1797cd authored by Nick Cao's avatar Nick Cao Committed by github-actions[bot]
Browse files

bpf-linker: add workaround for #166205

(cherry picked from commit 9b158afe)
parent 4784a121
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";