bpf-linker: 0.9.15 -> 0.10.3 (#495824)

This commit is contained in:
Matt Sturgeon
2026-05-29 16:26:41 +00:00
committed by GitHub
+11 -12
View File
@@ -1,40 +1,42 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
btfdump,
rustc,
# Override this if you are compiling your BPF programs with a version of
# rustc that uses a different LLVM version, for example when using a rust
# overlay.
llvmPackagesForLinker ? rustc.llvmPackages,
zlib,
libxml2,
}:
rustPlatform.buildRustPackage rec {
pname = "bpf-linker";
version = "0.9.15";
version = "0.10.3";
src = fetchFromGitHub {
owner = "aya-rs";
repo = "bpf-linker";
tag = "v${version}";
hash = "sha256-5HXYtAn6KaFXsiA3Nt0IwmFLOXBhZWYrD8cMZ8rZ1fk=";
hash = "sha256-QqJtiKQgU1rgiQOTw5kn0LhxiGrGz65y9wzMMpqEBz8=";
};
cargoHash = "sha256-coIcd6WjVQM/b51jwkG8It/wubXx6wuuPlzzelPFE38=";
cargoHash = "sha256-zA3R34QS3wAALEIo7k37BjDgyfzqg0n12Z0rZ/GTIIk=";
buildNoDefaultFeatures = true;
buildFeatures = [ "llvm-${lib.versions.major rustc.llvm.version}" ];
nativeBuildInputs = [ rustc.llvm ];
buildFeatures = [ "llvm-${lib.versions.major llvmPackagesForLinker.llvm.version}" ];
buildInputs = [
zlib
libxml2
(lib.getLib llvmPackagesForLinker.llvm)
];
nativeCheckInputs = [
btfdump
rustc.llvmPackages.clang.cc
llvmPackagesForLinker.clang.cc
llvmPackagesForLinker.llvm
];
meta = {
@@ -46,8 +48,5 @@ rustPlatform.buildRustPackage rec {
mit
];
maintainers = with lib.maintainers; [ nickcao ];
# llvm-sys crate locates llvm by calling llvm-config
# which is not available when cross compiling
broken = stdenv.buildPlatform != stdenv.hostPlatform;
};
}