python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / misc / gum / default.nix
blobd4bd7c63a7225fd8eccad7b4301a3faa74a5d3db
1 { lib, buildGoModule, installShellFiles, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "gum";
5   version = "0.8.0";
7   src = fetchFromGitHub {
8     owner = "charmbracelet";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-6x1t/PLs1dqlY5XQ1F0PDqZ/TofZ0h1hTc0C1sjn3fA=";
12   };
14   vendorSha256 = "sha256-rOBwhPXo4sTSI3j3rn3c5qWGnGFgkpeFUKgtzKBltbg=";
16   nativeBuildInputs = [
17     installShellFiles
18   ];
20   ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
22   postInstall = ''
23     $out/bin/gum man > gum.1
24     installManPage gum.1
25     installShellCompletion --cmd gum \
26       --bash <($out/bin/gum completion bash) \
27       --fish <($out/bin/gum completion fish) \
28       --zsh <($out/bin/gum completion zsh)
29   '';
31   meta = with lib; {
32     description = "Tasty Bubble Gum for your shell";
33     homepage = "https://github.com/charmbracelet/gum";
34     changelog = "https://github.com/charmbracelet/gum/releases/tag/v${version}";
35     license = licenses.mit;
36     maintainers = with maintainers; [ maaslalani ];
37   };