aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/package-management/cargo-graph/default.nix
blob: 5bca56d993d948a49023cd5dc20d5597c0e4b762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
  pname = "cargo-graph";
  version = "0.2.0-d895af1";

  src = fetchFromGitHub {
    owner = "kbknapp";
    repo = "cargo-graph";
    # The last release (v0.2.0) is from 2015. Since then there have been some
    # bug fixes committed that would be good to have.
    rev = "d895af1b7840c7ae8eddaf4e990bfa594c22ba01";
    sha256 = "0myg26cssmbakz53dl61lswsbaqnjqlbc30c2571pq8f7gvz2qv5";
  };

  cargoSha256 = "0fzj88iy57c39yi8pf3agfmsf2dck06f0yqmlnsaxvvp4cknkw1n";

  meta = with lib; {
    description = "A cargo subcommand for creating GraphViz DOT files and dependency graphs";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ basvandijk ];
  };
}