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-02-20 23:44:54 +00:00
|
|
|
version = "0.3.4";
|
2019-11-03 20:51:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dduan";
|
|
|
|
repo = "tre";
|
|
|
|
rev = "v${version}";
|
2021-02-20 23:44:54 +00:00
|
|
|
sha256 = "0syvhpnw9c5csxv8c4gdfwif9a9vl4rjkwj4mfglgxk227k1y53q";
|
2019-11-03 20:51:01 +00:00
|
|
|
};
|
|
|
|
|
2021-02-20 23:44:54 +00:00
|
|
|
cargoSha256 = "056wlxz8hzky8315rnn65nh7dd2yhx5323y3hq64g6aqj52vd734";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|