fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / tr / tre-command / package.nix
blob12d76e61e5df8cb597b282b34fb24f1e248e1450
2   rustPlatform,
3   fetchFromGitHub,
4   lib,
5   installShellFiles,
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "tre-command";
10   version = "0.4.0";
12   src = fetchFromGitHub {
13     owner = "dduan";
14     repo = "tre";
15     rev = "v${version}";
16     sha256 = "sha256-JlkONhXMWLzxAf3SYoLkSvXw4bFYBnsCyyj0TUsezwg=";
17   };
19   cargoHash = "sha256-b3fScJMG/CIkMrahbELLQp1otmT5En+p8kQsip05SOc=";
21   nativeBuildInputs = [ installShellFiles ];
23   preFixup = ''
24     installManPage manual/tre.1
25     installShellCompletion scripts/completion/tre.{bash,fish}
26     installShellCompletion --zsh scripts/completion/_tre
27   '';
29   # this test requires package to be in a git repo to succeed
30   checkFlags = [
31     "--skip"
32     "respect_git_ignore"
33   ];
35   meta = with lib; {
36     description = "Tree command, improved";
37     homepage = "https://github.com/dduan/tre";
38     license = licenses.mit;
39     maintainers = [ maintainers.dduan ];
40     mainProgram = "tre";
41   };