2023-07-15 17:15:38 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "wander";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.0.2";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "robinovitch61";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-7/5NcrS5VR3APhv5LEpd4U0+E4PwM9cU9bb1q6UDfoI=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
vendorHash = "sha256-0S8tzP5yNUrH6fp+v7nbUPTMWzYXyGw+ZNcXkSN+tWY=";
|
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;
|
|
|
|
};
|
|
|
|
}
|