2021-02-05 17:12:51 +00:00
|
|
|
{ rustPlatform, fetchFromGitHub, lib, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-06-15 15:56:04 +00:00
|
|
|
pname = "tre-command";
|
2021-02-22 21:28:39 +00:00
|
|
|
version = "0.3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dduan";
|
|
|
|
repo = "tre";
|
|
|
|
rev = "v${version}";
|
2021-02-22 21:28:39 +00:00
|
|
|
sha256 = "0syvhpnw9c5csxv8c4gdfwif9a9vl4rjkwj4mfglgxk227k1y53q";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
cargoSha256 = "056wlxz8hzky8315rnn65nh7dd2yhx5323y3hq64g6aqj52vd734";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
installManPage manual/tre.1
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tree command, improved";
|
|
|
|
homepage = "https://github.com/dduan/tre";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.dduan ];
|
|
|
|
};
|
|
|
|
}
|