From 93730f925b34ff1de8069896ce0dd25b56445b4b Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 27 Jun 2023 10:06:03 -0400 Subject: [PATCH] cargo-depgraph: 1.4.0 -> 1.5.0 Changelog: https://git.sr.ht/~jplatte/cargo-depgraph/tree/v1.5.0/item/CHANGELOG.md --- .../tools/rust/cargo-depgraph/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-depgraph/default.nix b/pkgs/development/tools/rust/cargo-depgraph/default.nix index 3928952ba452..57c71687243a 100644 --- a/pkgs/development/tools/rust/cargo-depgraph/default.nix +++ b/pkgs/development/tools/rust/cargo-depgraph/default.nix @@ -1,20 +1,22 @@ -{ lib, rustPlatform, fetchCrate }: +{ lib, rustPlatform, fetchFromSourcehut }: rustPlatform.buildRustPackage rec { pname = "cargo-depgraph"; - version = "1.4.0"; + version = "1.5.0"; - src = fetchCrate { - inherit pname version; - sha256 = "sha256-D8g6xsmYvN1IWUFpkpo4/OKT70WqCCkRqcGFBOE8uXA="; + src = fetchFromSourcehut { + owner = "~jplatte"; + repo = "cargo-depgraph"; + rev = "v${version}"; + hash = "sha256-q9a7O6lSsQz9nJ82uG1oNyNyNebzXEanVWh3xkypqqM="; }; - cargoSha256 = "sha256-qpd/uvnQzrPc+dbBloxyYNCEjaRWlTicgNC8Z9Z0t88="; + cargoHash = "sha256-gmSNYxyizaVvz38R0nTdUp9nP/f4hxgHO9hVV3RFP6U="; meta = with lib; { description = "Create dependency graphs for cargo projects using `cargo metadata` and graphviz"; homepage = "https://sr.ht/~jplatte/cargo-depgraph"; - changelog = "https://git.sr.ht/~jplatte/cargo-depgraph/tree/v${version}/item/CHANGELOG.md"; + changelog = "https://git.sr.ht/~jplatte/cargo-depgraph/tree/${src.rev}/item/CHANGELOG.md"; license = licenses.gpl3Plus; maintainers = with maintainers; [ figsoda ]; };