depot/third_party/nixpkgs/pkgs/tools/system/tre-command/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

29 lines
695 B
Nix

{ rustPlatform, fetchFromGitHub, lib, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "tre-command";
version = "0.3.6";
src = fetchFromGitHub {
owner = "dduan";
repo = "tre";
rev = "v${version}";
sha256 = "1r84xzv3p0ml3wac2j7j5fkm7i93v2xvadb8f8al5wi57q39irj7";
};
cargoSha256 = "1f7yhnbgccqmz8hpc1xdv97j53far6d5p5gqvq6xxaqq9irf9bgj";
nativeBuildInputs = [ installShellFiles ];
preFixup = ''
installManPage manual/tre.1
'';
meta = with lib; {
description = "Tree command, improved";
homepage = "https://github.com/dduan/tre";
license = licenses.mit;
maintainers = [ maintainers.dduan ];
mainProgram = "tre";
};
}