1 { lib, stdenv, buildGoModule, installShellFiles, fetchFromGitHub }:
7 src = fetchFromGitHub {
8 owner = "charmbracelet";
11 hash = "sha256-moKirTXziVo6ESOsnTUmPkcdBYL/VHaG226+UfM0xAk=";
14 vendorHash = "sha256-wjM2ld4go7OQu6XqsSGurjN09Fd5t9FNLvIzgrZEZ1k=";
20 ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
23 $out/bin/gum man > gum.1
25 '' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
26 installShellCompletion --cmd gum \
27 --bash <($out/bin/gum completion bash) \
28 --fish <($out/bin/gum completion fish) \
29 --zsh <($out/bin/gum completion zsh)
33 description = "Tasty Bubble Gum for your shell";
34 homepage = "https://github.com/charmbracelet/gum";
35 changelog = "https://github.com/charmbracelet/gum/releases/tag/v${version}";
36 license = licenses.mit;
37 maintainers = with maintainers; [ maaslalani ];