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