2023-07-15 17:15:38 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "wander";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.11.2";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "robinovitch61";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-zAvPtTUrSHeIMy9MgJviyMvMJ0Ny5Nkx6oLwWPSc9bE=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-SqDGXV8MpvEQFAkcE1NWvWjdzYsvbO5vA6k+hpY0js0=";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd wander \
|
|
|
|
--fish <($out/bin/wander completion fish) \
|
|
|
|
--bash <($out/bin/wander completion bash) \
|
|
|
|
--zsh <($out/bin/wander completion zsh)
|
|
|
|
'';
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal app/TUI for HashiCorp Nomad";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/robinovitch61/wander";
|
|
|
|
maintainers = teams.c3d2.members;
|
|
|
|
};
|
|
|
|
}
|