From c462b217054777bc03e4ae9850d0247ef982accb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 17 Jun 2023 13:58:09 +0200 Subject: [PATCH] rust-cbindgen: 0.24.3 -> 0.24.6 https://github.com/mozilla/cbindgen/blob/v0.24.6/CHANGES https://github.com/mozilla/cbindgen/compare/v0.24.3...v0.24.6 --- .../tools/rust/cbindgen/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/tools/rust/cbindgen/default.nix b/pkgs/development/tools/rust/cbindgen/default.nix index 372f36879702..85a1f1272b7d 100644 --- a/pkgs/development/tools/rust/cbindgen/default.nix +++ b/pkgs/development/tools/rust/cbindgen/default.nix @@ -1,21 +1,29 @@ -{ lib, stdenv, fetchFromGitHub, rustPlatform, python3Packages, Security }: +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, cmake +, python3Packages +, Security +}: rustPlatform.buildRustPackage rec { pname = "rust-cbindgen"; - version = "0.24.3"; + version = "0.24.6"; src = fetchFromGitHub { - owner = "eqrion"; + owner = "mozilla"; repo = "cbindgen"; rev = "v${version}"; - hash = "sha256-v5g6/ul6mJtzC4O4WlNopPtFUSbx2Jv79mZL72mucws="; + hash = "sha256-RHh97hwWmjV6hw+fX+fOtixX/DGedTf9cx+PYPW6/wI="; }; - cargoSha256 = "sha256-j3/2cFjSDkx0TXCaxYSCLrBbAHrJfJ6hwBcXlDedwh8="; + cargoSha256 = "sha256-7G/16arXYwt7Nrs1isWyrPubm8GMi8NsjLjWAD8x6aM="; buildInputs = lib.optional stdenv.isDarwin Security; nativeCheckInputs = [ + cmake python3Packages.cython ]; @@ -34,8 +42,9 @@ rustPlatform.buildRustPackage rec { ]; meta = with lib; { + changelog = "https://github.com/mozilla/cbindgen/blob/v${version}/CHANGES"; description = "A project for generating C bindings from Rust code"; - homepage = "https://github.com/eqrion/cbindgen"; + homepage = "https://github.com/mozilla/cbindgen"; license = licenses.mpl20; maintainers = with maintainers; [ hexa ]; };