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
865 B
Nix
Raw Normal View History

{ 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
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;
};
}