Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ rustPlatform, fetchFromGitHub, lib, installShellFiles }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "tre-command"; 5 version = "0.4.0"; 6 7 src = fetchFromGitHub { 8 owner = "dduan"; 9 repo = "tre"; 10 rev = "v${version}"; 11 sha256 = "sha256-JlkONhXMWLzxAf3SYoLkSvXw4bFYBnsCyyj0TUsezwg="; 12 }; 13 14 cargoSha256 = "sha256-b3fScJMG/CIkMrahbELLQp1otmT5En+p8kQsip05SOc="; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 preFixup = '' 19 installManPage manual/tre.1 20 installShellCompletion scripts/completion/tre.{bash,fish} 21 installShellCompletion --zsh scripts/completion/_tre 22 ''; 23 24 # this test requires package to be in a git repo to succeed 25 checkFlags = [ "--skip" "respect_git_ignore" ]; 26 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 }; 34}