about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/development/tools/rust/cargo-depgraph/default.nix16
1 files 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 3928952ba4526..57c71687243a1 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 ];
   };