nixpkgs/pkgs/tools/admin/wander/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
864 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2022-07-11 01:30:23 +00:00
buildGoModule rec {
pname = "wander";
2024-01-25 05:02:48 +00:00
version = "1.0.2";
2022-07-11 01:30:23 +00:00
src = fetchFromGitHub {
owner = "robinovitch61";
repo = pname;
rev = "v${version}";
2024-01-25 05:02:48 +00:00
sha256 = "sha256-7/5NcrS5VR3APhv5LEpd4U0+E4PwM9cU9bb1q6UDfoI=";
2022-07-11 01:30:23 +00:00
};
2023-12-25 02:42:05 +00:00
vendorHash = "sha256-0S8tzP5yNUrH6fp+v7nbUPTMWzYXyGw+ZNcXkSN+tWY=";
2022-08-31 11:36:29 +00:00
ldflags = [ "-s" "-w" ];
2022-08-31 11:36:29 +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-11 01:30:23 +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;
};
}