nixpkgs/pkgs/tools/system/tre-command/default.nix

29 lines
670 B
Nix
Raw Normal View History

{ rustPlatform, fetchFromGitHub, lib, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "tre-command";
2021-03-27 23:04:37 +00:00
version = "0.3.6";
src = fetchFromGitHub {
owner = "dduan";
repo = "tre";
rev = "v${version}";
2021-03-27 23:04:37 +00:00
sha256 = "1r84xzv3p0ml3wac2j7j5fkm7i93v2xvadb8f8al5wi57q39irj7";
};
2021-03-27 23:04:37 +00:00
cargoSha256 = "1nbfgz7njc10b0abs6zwi6wzhlwllps3wah6abc1mj5yhrzwccmh";
nativeBuildInputs = [ installShellFiles ];
preFixup = ''
installManPage manual/tre.1
'';
meta = with lib; {
description = "Tree command, improved";
homepage = "https://github.com/dduan/tre";
license = licenses.mit;
maintainers = [ maintainers.dduan ];
};
}