From a6bcd9c0b4c731ce4f38fed181c19337acd17ced Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 8 May 2023 13:26:01 -0400 Subject: cargo-supply-chain: 0.3.2 -> 0.3.3 Changelog: https://github.com/rust-secure-code/cargo-supply-chain/blob/v0.3.3/CHANGELOG.md --- .../tools/rust/cargo-supply-chain/default.nix | 25 +++++++++++++++------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'pkgs/development/tools/rust/cargo-supply-chain/default.nix') diff --git a/pkgs/development/tools/rust/cargo-supply-chain/default.nix b/pkgs/development/tools/rust/cargo-supply-chain/default.nix index 9e2eb3ee7e1..5865c98b11a 100644 --- a/pkgs/development/tools/rust/cargo-supply-chain/default.nix +++ b/pkgs/development/tools/rust/cargo-supply-chain/default.nix @@ -1,22 +1,31 @@ -{ lib, rustPlatform, fetchCrate, stdenv, Security }: +{ lib +, rustPlatform +, fetchFromGitHub +, stdenv +, darwin +}: rustPlatform.buildRustPackage rec { pname = "cargo-supply-chain"; - version = "0.3.2"; + version = "0.3.3"; - src = fetchCrate { - inherit pname version; - sha256 = "sha256-0WyaenLyD1MNkV+mzCIodhtkU6FqbGnuTdw6PvzIrVU="; + src = fetchFromGitHub { + owner = "rust-secure-code"; + repo = "cargo-supply-chain"; + rev = "v${version}"; + hash = "sha256-KjeYB9TFbuJ2KPaObeM0ADs5F8uJJ6/czMPQjBUgIk8="; }; - cargoSha256 = "sha256-K3qBhd090BUZyJIAbhPBCQpCwgudCSGL7i7EezOp66Y="; + cargoHash = "sha256-Fx1C4X0dQqePqLa+X+4ZDrIMFKBQ6J50nBApYXcGbFM="; - buildInputs = lib.optional stdenv.isDarwin Security; + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; meta = with lib; { description = "Gather author, contributor and publisher data on crates in your dependency graph"; homepage = "https://github.com/rust-secure-code/cargo-supply-chain"; - changelog = "https://github.com/rust-secure-code/cargo-supply-chain/blob/master/CHANGELOG.md"; + changelog = "https://github.com/rust-secure-code/cargo-supply-chain/blob/${src.rev}/CHANGELOG.md"; license = with licenses; [ asl20 mit zlib ]; # any of three maintainers = with maintainers; [ figsoda ]; }; -- cgit 1.4.1