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