Skip to content

Commit

Permalink
nixel: 4.1.0 -> 5.1.1
Browse files Browse the repository at this point in the history
 + Fix rust crate::ffi bindgen error w/ clang 18&19  by downgrading to 16
  • Loading branch information
Antoine 'toinux' Wam committed Jan 20, 2025
1 parent d4e0f0a commit bdd148d
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions pkgs/by-name/ni/nixel/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,33 @@
rustPlatform,
fetchFromGitHub,
nix-update-script,
clang_16,
testers,
nixel,
}:

rustPlatform.buildRustPackage rec {
let
clang = clang_16; # Until bindgen is updated with clang19 support
rustPlatform' = rustPlatform // {
bindgenHook = rustPlatform.bindgenHook.override { inherit clang; };
};
in
rustPlatform'.buildRustPackage rec {
pname = "nixel";
version = "4.1.0";
version = "5.1.1";

src = fetchFromGitHub {
owner = "kamadorueda";
repo = pname;
rev = version;
sha256 = "sha256-dQ3wzBTjteqk9rju+FMAO+ydimnGu24Y2DEDLX/P+1A=";
sha256 = "sha256-wIXZd8iujLqbgbV+abWmIfjDgQ8i6nyE5jTAs3OczXM=";
};

cargoHash = "sha256-1OsHs0W3ji9Kgpv7nGY9XyGxJ4c0faN2VuFLsdwkgKY=";
cargoHash = "sha256-GJ2UO8MvujRxFjzdt2Tfrlfzv1jot9XCrmfBqTFVngI=";

nativeBuildInputs = [
# Workaround borrowed here where the same error were observed: https://github.com/NixOS/nixpkgs/issues/331240#issuecomment-2260565324
rustPlatform'.bindgenHook # with override { clang = clang_16; }
];

# Package requires a non reproducible submodule
# https://github.com/kamadorueda/nixel/blob/2873bd84bf4fc540d0ae8af062e109cc9ad40454/.gitmodules#L7
Expand Down

0 comments on commit bdd148d

Please sign in to comment.