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

Merge pull request #328224 from l2dy/bpf-linker-0.9.12

bpf-linker: 0.9.5 -> 0.9.12
parents be9599e3 bb24a96d
Loading
Loading
Loading
Loading
+1231 −0

File added.

Preview size limit exceeded, changes collapsed.

+10 −6
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
, stdenv
, rustPlatform
, fetchFromGitHub
, llvmPackages_15
, llvmPackages_18
, zlib
, ncurses
, libxml2
@@ -10,21 +10,25 @@

rustPlatform.buildRustPackage rec {
  pname = "bpf-linker";
  version = "0.9.5";
  version = "0.9.12";

  src = fetchFromGitHub {
    owner = "aya-rs";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-LEZ2to1bzJ/H/XYytuh/7NT7+04aI8chpKIFxxVzM+4=";
    hash = "sha256-HMLbNAB6Ze2x8OeAwVXMMn5P9GYK9hCa61Ic5yqblUA=";
  };

  cargoHash = "sha256-s8cW7lXtvgemuQueTtAywewnDVJ/WDcz8SBqsC/tO80=";
  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "compiletest_rs-0.10.2" = "sha256-n1OxKal1B+WNshfMgtiA5Th+FQyDalOdB4PAo6mUzwQ=";
    };
  };

  buildNoDefaultFeatures = true;
  buildFeatures = [ "system-llvm" ];

  nativeBuildInputs = [ llvmPackages_15.llvm ];
  nativeBuildInputs = [ llvmPackages_18.llvm ];
  buildInputs = [ zlib ncurses libxml2 ];

  # fails with: couldn't find crate `core` with expected target triple bpfel-unknown-none