nixpkgs/pkgs/tools/system/erdtree/default.nix

28 lines
698 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "erdtree";
version = "2.0.0";
src = fetchFromGitHub {
owner = "solidiquis";
repo = pname;
rev = "v${version}";
hash = "sha256-Bn3gW8jfiX7tuANktAKO5ceokFtvURy2UZoL0+IBPaM=";
};
cargoHash = "sha256-Z3R8EmclmEditbGBb1Dd1hgGm34boCSI/fh3TBXxMG0=";
meta = with lib; {
description = "File-tree visualizer and disk usage analyzer";
homepage = "https://github.com/solidiquis/erdtree";
changelog = "https://github.com/solidiquis/erdtree/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda zendo ];
mainProgram = "erd";
};
}