evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / tr / tre-command / package.nix
blob59cb00e7095f3c673aa1e14e11f8d4969c2e445e
1 { rustPlatform, fetchFromGitHub, lib, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
4   pname = "tre-command";
5   version = "0.4.0";
7   src = fetchFromGitHub {
8     owner = "dduan";
9     repo = "tre";
10     rev = "v${version}";
11     sha256 = "sha256-JlkONhXMWLzxAf3SYoLkSvXw4bFYBnsCyyj0TUsezwg=";
12   };
14   cargoHash = "sha256-b3fScJMG/CIkMrahbELLQp1otmT5En+p8kQsip05SOc=";
16   nativeBuildInputs = [ installShellFiles ];
18   preFixup = ''
19     installManPage manual/tre.1
20     installShellCompletion scripts/completion/tre.{bash,fish}
21     installShellCompletion --zsh scripts/completion/_tre
22   '';
24   # this test requires package to be in a git repo to succeed
25   checkFlags = [ "--skip" "respect_git_ignore" ];
27   meta = with lib; {
28     description = "Tree command, improved";
29     homepage = "https://github.com/dduan/tre";
30     license = licenses.mit;
31     maintainers = [ maintainers.dduan ];
32     mainProgram = "tre";
33   };