2020-08-20 17:08:02 +00:00
|
|
|
{ rustPlatform, fetchFromGitHub, stdenv, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-06-15 15:56:04 +00:00
|
|
|
pname = "tre-command";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "0.3.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dduan";
|
|
|
|
repo = "tre";
|
|
|
|
rev = "v${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "1kb8jwmjhlp9bk08rb6gq3j810cv9bidm28sa417vyykp9a8p2ky";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
cargoSha256 = "0cqkpvq8b2vnqpkd819cdgh4fqr9yns337fgzah4m40ygs25n9iv";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
installManPage manual/tre.1
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tree command, improved";
|
|
|
|
homepage = "https://github.com/dduan/tre";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.dduan ];
|
|
|
|
};
|
|
|
|
}
|