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

wander: 0.7.0 -> 0.8.0
This commit is contained in:
superherointj 2022-10-06 12:30:06 -03:00 committed by GitHub
commit e4c91c88e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,17 +1,41 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ wander, buildGoModule, fetchFromGitHub, fetchpatch, installShellFiles, lib, testers }:
buildGoModule rec {
pname = "wander";
version = "0.7.0";
version = "0.8.0";
src = fetchFromGitHub {
owner = "robinovitch61";
repo = pname;
rev = "v${version}";
sha256 = "sha256-aQqJDUDYHoUZ6ixnY3lmFOx29QpRRke5XHFIpsA+Bnw=";
sha256 = "sha256-G/TrfnmEyomdUCN5nUS9v5iqeUzgZzMLUZnfroQLZuk=";
};
vendorSha256 = "sha256-T+URnRLumXFz48go9TN0Wha99T03OWGfDK7cQ+zKeRI=";
vendorSha256 = "sha256-iTaZ5/0UrLJ3JE3FwQpvjKKrhqklG4n1WFTJhWfj/rI=";
patches = [
(fetchpatch {
url = "https://github.com/robinovitch61/wander/commit/b3d3249541de005404a41c17a15218a4f73f68e5.patch";
sha256 = "sha256-z8bdSFcAqnwEu0gupxW/L1o/asyxbvTYIdtLZNmQpz8=";
})
];
ldflags = [ "-X github.com/robinovitch61/wander/cmd.Version=v${version}" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd wander \
--fish <($out/bin/wander completion fish) \
--bash <($out/bin/wander completion bash) \
--zsh <($out/bin/wander completion zsh)
'';
passthru.tests.version = testers.testVersion {
package = wander;
command = "wander --version";
version = "v${version}";
};
meta = with lib; {
description = "Terminal app/TUI for HashiCorp Nomad";