Merge pull request #189102 from dbalan/update-wander-0.8.0

wander: 0.7.0 -> 0.8.0

authored by superherointj and committed by GitHub e4c91c88 550e3ff1

+28 -4
+28 -4
pkgs/tools/admin/wander/default.nix
··· 1 - { buildGoModule, fetchFromGitHub, lib }: 1 + { wander, buildGoModule, fetchFromGitHub, fetchpatch, installShellFiles, lib, testers }: 2 2 3 3 buildGoModule rec { 4 4 pname = "wander"; 5 - version = "0.7.0"; 5 + version = "0.8.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "robinovitch61"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-aQqJDUDYHoUZ6ixnY3lmFOx29QpRRke5XHFIpsA+Bnw="; 11 + sha256 = "sha256-G/TrfnmEyomdUCN5nUS9v5iqeUzgZzMLUZnfroQLZuk="; 12 12 }; 13 13 14 - vendorSha256 = "sha256-T+URnRLumXFz48go9TN0Wha99T03OWGfDK7cQ+zKeRI="; 14 + vendorSha256 = "sha256-iTaZ5/0UrLJ3JE3FwQpvjKKrhqklG4n1WFTJhWfj/rI="; 15 + 16 + patches = [ 17 + (fetchpatch { 18 + url = "https://github.com/robinovitch61/wander/commit/b3d3249541de005404a41c17a15218a4f73f68e5.patch"; 19 + sha256 = "sha256-z8bdSFcAqnwEu0gupxW/L1o/asyxbvTYIdtLZNmQpz8="; 20 + }) 21 + ]; 22 + 23 + ldflags = [ "-X github.com/robinovitch61/wander/cmd.Version=v${version}" ]; 24 + 25 + nativeBuildInputs = [ installShellFiles ]; 26 + 27 + postInstall = '' 28 + installShellCompletion --cmd wander \ 29 + --fish <($out/bin/wander completion fish) \ 30 + --bash <($out/bin/wander completion bash) \ 31 + --zsh <($out/bin/wander completion zsh) 32 + ''; 33 + 34 + passthru.tests.version = testers.testVersion { 35 + package = wander; 36 + command = "wander --version"; 37 + version = "v${version}"; 38 + }; 15 39 16 40 meta = with lib; { 17 41 description = "Terminal app/TUI for HashiCorp Nomad";