2023-07-09 18:00:54 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2022-07-11 03:30:23 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "wander";
|
2023-12-25 03:42:05 +01:00
|
|
|
version = "0.14.1";
|
2022-07-11 03:30:23 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "robinovitch61";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-12-25 03:42:05 +01:00
|
|
|
sha256 = "sha256-ULttOJcP3LHQAlyJKGEKT3B3PqYOP5+IxDej673020M=";
|
2022-07-11 03:30:23 +02:00
|
|
|
};
|
|
|
|
|
2023-12-25 03:42:05 +01:00
|
|
|
vendorHash = "sha256-0S8tzP5yNUrH6fp+v7nbUPTMWzYXyGw+ZNcXkSN+tWY=";
|
2022-08-31 13:36:29 +02:00
|
|
|
|
2023-07-09 18:00:54 +02:00
|
|
|
ldflags = [ "-s" "-w" ];
|
2022-08-31 13:36:29 +02: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-11 03:30:23 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal app/TUI for HashiCorp Nomad";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/robinovitch61/wander";
|
|
|
|
maintainers = teams.c3d2.members;
|
|
|
|
};
|
|
|
|
}
|