2021-01-25 09:26:54 +01:00
|
|
|
{ rustPlatform, fetchFromGitHub, lib, installShellFiles }:
|
2019-11-03 21:51:01 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-06-16 06:06:09 +02:00
|
|
|
pname = "tre-command";
|
2021-03-28 00:04:37 +01:00
|
|
|
version = "0.3.6";
|
2019-11-03 21:51:01 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dduan";
|
|
|
|
repo = "tre";
|
|
|
|
rev = "v${version}";
|
2021-03-28 00:04:37 +01:00
|
|
|
sha256 = "1r84xzv3p0ml3wac2j7j5fkm7i93v2xvadb8f8al5wi57q39irj7";
|
2019-11-03 21:51:01 +01:00
|
|
|
};
|
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "1f7yhnbgccqmz8hpc1xdv97j53far6d5p5gqvq6xxaqq9irf9bgj";
|
2020-08-09 01:11:36 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
installManPage manual/tre.1
|
|
|
|
'';
|
2019-11-03 21:51:01 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-11-03 21:51:01 +01:00
|
|
|
description = "Tree command, improved";
|
|
|
|
homepage = "https://github.com/dduan/tre";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.dduan ];
|
|
|
|
};
|
|
|
|
}
|