1{ lib
2, rustPlatform
3, fetchFromGitHub
4}:
5
6rustPlatform.buildRustPackage rec {
7 pname = "erdtree";
8 version = "3.1.2";
9
10 src = fetchFromGitHub {
11 owner = "solidiquis";
12 repo = pname;
13 rev = "v${version}";
14 hash = "sha256-rm3j1exvdlJtMXgFeRmzr3YU/sLpQFL3PCa8kLVlinM=";
15 };
16
17 cargoHash = "sha256-rHrdGL/2diBwsWJyg7gaa6UmcUdvGhUPhLNESSBvDDg=";
18
19 meta = with lib; {
20 description = "File-tree visualizer and disk usage analyzer";
21 homepage = "https://github.com/solidiquis/erdtree";
22 changelog = "https://github.com/solidiquis/erdtree/releases/tag/${src.rev}";
23 license = licenses.mit;
24 maintainers = with maintainers; [ figsoda zendo ];
25 mainProgram = "erd";
26 };
27}