nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 42 lines 940 B view raw
1{ 2 rustPlatform, 3 fetchFromGitHub, 4 lib, 5 installShellFiles, 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "tre-command"; 10 version = "0.4.0"; 11 12 src = fetchFromGitHub { 13 owner = "dduan"; 14 repo = "tre"; 15 rev = "v${version}"; 16 sha256 = "sha256-JlkONhXMWLzxAf3SYoLkSvXw4bFYBnsCyyj0TUsezwg="; 17 }; 18 19 cargoHash = "sha256-a3k5P+i0jLqamP2CInSQjivyI/tREeJME6IqI/YiLog="; 20 21 nativeBuildInputs = [ installShellFiles ]; 22 23 preFixup = '' 24 installManPage manual/tre.1 25 installShellCompletion scripts/completion/tre.{bash,fish} 26 installShellCompletion --zsh scripts/completion/_tre 27 ''; 28 29 # this test requires package to be in a git repo to succeed 30 checkFlags = [ 31 "--skip" 32 "respect_git_ignore" 33 ]; 34 35 meta = { 36 description = "Tree command, improved"; 37 homepage = "https://github.com/dduan/tre"; 38 license = lib.licenses.mit; 39 maintainers = [ lib.maintainers.dduan ]; 40 mainProgram = "tre"; 41 }; 42}