Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-23.11]: cargo-* tools updates #298302

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions pkgs/development/tools/rust/cargo-audit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,36 @@
, rustPlatform
, fetchCrate
, pkg-config
, libgit2_1_5
, libgit2
, openssl
, zlib
, stdenv
, Security
, SystemConfiguration
}:

rustPlatform.buildRustPackage rec {
pname = "cargo-audit";
version = "0.18.3";
version = "0.20.0";

src = fetchCrate {
inherit pname version;
hash = "sha256-8KLH6aPZhHtxC4hbMaebv1JiVkZH8p5QqnUXkJrmr4w=";
hash = "sha256-hzy+AVWGWzWYupllrLSryoi4rXPM0+G6WBlRbf03xA8=";
};

cargoHash = "sha256-8MOZvhREm4ch2flstx7J25j8mvwV3uGez5f1xkZ+S7I=";
cargoHash = "sha256-OOkJGdqEHNVbgZZIjQupGaSs4tB52b7kPGLKELUocn4=";

nativeBuildInputs = [
pkg-config
];

buildInputs = [
libgit2_1_5
libgit2
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
Security
SystemConfiguration
];

buildFeatures = [ "fix" ];
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/tools/rust/cargo-c/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@

rustPlatform.buildRustPackage rec {
pname = "cargo-c";
version = "0.9.24";
version = "0.9.29";

src = fetchCrate {
inherit pname;
# this version may need to be updated along with package version
version = "${version}+cargo-0.73.0";
hash = "sha256-eNaK+SRrHz/DXkCcJP040R6bdhyFmjxkwHbXVFlHub8=";
version = "${version}+cargo-0.76.0";
hash = "sha256-Uy5Bm8WwN3jQO2btnV/ayxTlIJAe5q2FUvhxCCrn9U8=";
};

cargoHash = "sha256-Us50BbdNSJAx7JTKkvA4tjbGNueCJsAwGEelc1sP5pc=";
cargoHash = "sha256-fkekUCZReiexdtiQcWx+Hqz4XDDbRGa4fGheBCNZ3Qw=";

nativeBuildInputs = [ pkg-config (lib.getDev curl) ];
buildInputs = [ openssl curl ] ++ lib.optionals stdenv.isDarwin [
Expand Down
14 changes: 9 additions & 5 deletions pkgs/development/tools/rust/cargo-codspeed/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, fetchFromGitHub
, curl
, pkg-config
, libgit2_1_5
, libgit2
, openssl
, zlib
, stdenv
Expand All @@ -12,16 +12,16 @@

rustPlatform.buildRustPackage rec {
pname = "cargo-codspeed";
version = "2.3.3";
version = "2.4.0";

src = fetchFromGitHub {
owner = "CodSpeedHQ";
repo = "codspeed-rust";
rev = "v${version}";
hash = "sha256-8wbJFvAXicchxI8FTthCiuYCZ2WA4nMUJTUD4WKG5FI=";
hash = "sha256-pi02Bn5m4JoTtCIZvxkiUVKkjmtCShKqZw+AyhaVdyY=";
};

cargoHash = "sha256-HkFROhjx4bh9QMUlCT1xj3s7aUQxn0ef3FCXoEsYCnY=";
cargoHash = "sha256-5Ps31Hdis+N/MT/o0IDHSJgHBM3F/ve50ovfFSviMtA=";

nativeBuildInputs = [
curl
Expand All @@ -30,7 +30,7 @@ rustPlatform.buildRustPackage rec {

buildInputs = [
curl
libgit2_1_5
libgit2
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
Expand All @@ -40,6 +40,10 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = [ "-p=cargo-codspeed" ];
cargoTestFlags = cargoBuildFlags;

env = {
LIBGIT2_NO_VENDOR = 1;
};

meta = with lib; {
description = "Cargo extension to build & run your codspeed benchmarks";
homepage = "https://github.com/CodSpeedHQ/codspeed-rust";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/tools/rust/cargo-cyclonedx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@

rustPlatform.buildRustPackage rec {
pname = "cargo-cyclonedx";
version = "0.3.8";
version = "0.5.0";

src = fetchFromGitHub {
owner = "CycloneDX";
repo = "cyclonedx-rust-cargo";
rev = "${pname}-${version}";
hash = "sha256-6XW8aCXepbVnTubbM4sfRIC87uYSCEbuj+jJcPayEEU=";
hash = "sha256-791FZR9dmwVjORrkpm8el+2VMEEKJG+yKKqq+R1I9U4=";
};

cargoHash = "sha256-BG/vfa5L6Iibfon3A5TP8/K8jbJsWqc+axdvIXc7GmM=";
cargoHash = "sha256-Cbi1cnUy6HKkgBXVjK0xItx2pzuYVob/Qz4o8eT6Fws=";

nativeBuildInputs = [
pkg-config
Expand Down
10 changes: 7 additions & 3 deletions pkgs/development/tools/rust/cargo-generate/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, rustPlatform
, fetchFromGitHub
, pkg-config
, libgit2_1_6
, libgit2
, openssl
, stdenv
, darwin
Expand All @@ -24,7 +24,7 @@ rustPlatform.buildRustPackage rec {

nativeBuildInputs = [ pkg-config ];

buildInputs = [ libgit2_1_6 openssl ] ++ lib.optionals stdenv.isDarwin [
buildInputs = [ libgit2 openssl ] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];

Expand All @@ -48,8 +48,12 @@ rustPlatform.buildRustPackage rec {
"--skip=git::utils::should_canonicalize"
];

env = {
LIBGIT2_NO_VENDOR = 1;
};

meta = with lib; {
description = "A tool to generaet a new Rust project by leveraging a pre-existing git repository as a template";
description = "A tool to generate a new Rust project by leveraging a pre-existing git repository as a template";
homepage = "https://github.com/cargo-generate/cargo-generate";
changelog = "https://github.com/cargo-generate/cargo-generate/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 /* or */ mit ];
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/tools/rust/cargo-llvm-cov/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

let
pname = "cargo-llvm-cov";
version = "0.6.6";
version = "0.6.9";

owner = "taiki-e";
homepage = "https://github.com/${owner}/${pname}";
Expand All @@ -37,7 +37,7 @@ let
cargoLock = fetchurl {
name = "Cargo.lock";
url = "https://crates.io/api/v1/crates/${pname}/${version}/download";
sha256 = "sha256-kY0Nb7bwF3o6DKQemZSwoZ55vw57jFGftNTpyprFxM0=";
sha256 = "sha256-r4C7z2/z4OVEf+IhFe061E7FzSx0VzADmg56Lb+DO/g=";
downloadToTemp = true;
postFetch = ''
tar xzf $downloadedFile ${pname}-${version}/Cargo.lock
Expand All @@ -55,7 +55,7 @@ rustPlatform.buildRustPackage {
inherit owner;
repo = pname;
rev = "v${version}";
sha256 = "sha256-lcB/GWEIg5Y+VUSWphNwzmTuFROfMaTm17HyokoKzrI=";
sha256 = "sha256-mNpZj8c+IHcW0StFzRPt7wcysADh01eLFcIK6fX/2KQ=";
leaveDotGit = true;
};

Expand All @@ -64,7 +64,7 @@ rustPlatform.buildRustPackage {
cp ${cargoLock} source/Cargo.lock
'';

cargoSha256 = "sha256-DjWKjq5Vf4wOu6sDPT2yrGB00g80Z59oEpIUvIObjsQ=";
cargoSha256 = "sha256-pfNb5P3IG1fQdhiQE3FGW8s4Rt2YyLxTejuzs3nqZUU=";

# `cargo-llvm-cov` reads these environment variables to find these binaries,
# which are needed to run the tests
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/tools/rust/cargo-nextest/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

rustPlatform.buildRustPackage rec {
pname = "cargo-nextest";
version = "0.9.67";
version = "0.9.68";

src = fetchFromGitHub {
owner = "nextest-rs";
repo = "nextest";
rev = "cargo-nextest-${version}";
hash = "sha256-M2WkgECTAKux+sq+1rYt2rg/LP4ctMMprY3MsBO5cn4=";
hash = "sha256-LC+0s38ufmMrhNaKSn13jka/M7PG1+gJnqZCXJ7ef6I=";
};

cargoHash = "sha256-hJAsmT8T3YGSWjishSQeVMFty6HmdNewRR9nr66fRN0=";
cargoHash = "sha256-E/bsVbSdFr1LMrIewsh15Vuk4Dt5UwETLCIhE7TT3kA=";

buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/tools/rust/cargo-tauri/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@
}:

let
inherit (darwin.apple_sdk.frameworks) CoreServices Security;
inherit (darwin.apple_sdk.frameworks) CoreServices Security SystemConfiguration;
in
rustPlatform.buildRustPackage rec {
pname = "tauri";
version = "1.5.2";
version = "1.6.1";

src = fetchFromGitHub {
owner = "tauri-apps";
repo = pname;
rev = "tauri-v${version}";
hash = "sha256-HdA7c64ru21DvjhIswRW6r+EH3uYj4ipWzBcfVcc644=";
hash = "sha256-P0/c9GTQRdErwE3/uuZpMqiTl/nFGSaHoWGRtBDjc8M=";
};

# Manually specify the sourceRoot since this crate depends on other crates in the workspace. Relevant info at
# https://discourse.nixos.org/t/difficulty-using-buildrustpackage-with-a-src-containing-multiple-cargo-workspaces/10202
sourceRoot = "${src.name}/tooling/cli";

cargoHash = "sha256-hmig/QKzdt/rIl4gggTygwZ6rEmekw0OlppN6pXvvmw=";
cargoHash = "sha256-+uRjitfaSbjsO1yO5NL3gw+qjx4neiht3BDvWltogX0=";

buildInputs = [ openssl ] ++ lib.optionals stdenv.isLinux [ glibc libsoup cairo gtk3 webkitgtk ]
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
++ lib.optionals stdenv.isDarwin [ CoreServices Security SystemConfiguration ];
nativeBuildInputs = [ pkg-config ];

meta = with lib; {
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/tools/rust/cargo-whatfeatures/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

rustPlatform.buildRustPackage rec {
pname = "cargo-whatfeatures";
version = "0.9.9";
version = "0.9.10";

src = fetchFromGitHub {
owner = "museun";
repo = pname;
rev = "v${version}";
sha256 = "sha256-YENzXU7sud3gsh32zh1EwGEgfvnIIa4FzHMwGKuI3JA=";
sha256 = "sha256-80VbQyOg6jvX98QRcCVN/wwhAm4bO/UfHEIv4gP8IlA=";
};

cargoSha256 = "sha256-mUBqygJBisZl3wJh/pXVLLq7P6EWz0Pd2j+iu2pz7Os=";
cargoHash = "sha256-mp9KUJuwSwRuxQAEilYwNZwqe3ipN4JzsaO5Pi3V9xg=";

nativeBuildInputs = [ pkg-config ];

Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/tools/rust/cargo-zigbuild/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

rustPlatform.buildRustPackage rec {
pname = "cargo-zigbuild";
version = "0.17.5";
version = "0.18.3";

src = fetchFromGitHub {
owner = "messense";
repo = pname;
rev = "v${version}";
hash = "sha256-x0TPbqwoCaXUlrjYQ47+x5KohsiK5yCrI2Q8yA2K8Zs=";
hash = "sha256-wL6Rmw5hJI8cJDw2WO9CDOyeOuZv6QoFxrn81JrYBR4=";
};

cargoHash = "sha256-FK6tTAbhP1f4VasG9HCahbMTDrJ9A6zXt/T6cs3HOZE=";
cargoHash = "sha256-uCZYDh4+Pri77DzqZj12cav7o8eDY2+fgwIwVBdcbHg=";

nativeBuildInputs = [ makeWrapper ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16998,7 +16998,7 @@ with pkgs;
cargo-all-features = callPackage ../development/tools/rust/cargo-all-features { };
cargo-apk = callPackage ../development/tools/rust/cargo-apk { };
cargo-audit = callPackage ../development/tools/rust/cargo-audit {
inherit (darwin.apple_sdk.frameworks) Security;
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
};
cargo-benchcmp = callPackage ../development/tools/rust/cargo-benchcmp { };
cargo-binstall = callPackage ../development/tools/rust/cargo-binstall { };
Expand Down
Loading