nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, rustPlatform, fetchCrate }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "cargo-depgraph";
5 version = "1.4.0";
6
7 src = fetchCrate {
8 inherit pname version;
9 sha256 = "sha256-D8g6xsmYvN1IWUFpkpo4/OKT70WqCCkRqcGFBOE8uXA=";
10 };
11
12 cargoSha256 = "sha256-qpd/uvnQzrPc+dbBloxyYNCEjaRWlTicgNC8Z9Z0t88=";
13
14 meta = with lib; {
15 description = "Create dependency graphs for cargo projects using `cargo metadata` and graphviz";
16 homepage = "https://sr.ht/~jplatte/cargo-depgraph";
17 changelog = "https://git.sr.ht/~jplatte/cargo-depgraph/tree/v${version}/item/CHANGELOG.md";
18 license = licenses.gpl3Plus;
19 maintainers = with maintainers; [ figsoda ];
20 };
21}