nixpkgs/pkgs/tools/admin/wander/default.nix
R. Ryantm 0000010be9
wander: 0.9.0 -> 0.10.1
Removed version test as I couldn't find a way to make it work with github.com/carlmjohnson/versioninfo
2023-07-09 22:35:34 +02:00

34 lines
865 B
Nix

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "wander";
version = "0.10.1";
src = fetchFromGitHub {
owner = "robinovitch61";
repo = pname;
rev = "v${version}";
sha256 = "sha256-jg83GHNlzPPzzhrLWw686vrmLlDL5L0+OUYqMoYUiJw=";
};
vendorHash = "sha256-SqDGXV8MpvEQFAkcE1NWvWjdzYsvbO5vA6k+hpY0js0=";
ldflags = [ "-s" "-w" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd wander \
--fish <($out/bin/wander completion fish) \
--bash <($out/bin/wander completion bash) \
--zsh <($out/bin/wander completion zsh)
'';
meta = with lib; {
description = "Terminal app/TUI for HashiCorp Nomad";
license = licenses.mit;
homepage = "https://github.com/robinovitch61/wander";
maintainers = teams.c3d2.members;
};
}