Unverified Commit a792c4e8 authored by Maas Lalani's avatar Maas Lalani Committed by GitHub
Browse files

gum: init at 0.1.0 (#183396)

parent d2f9abdc
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{ lib, buildGoModule, installShellFiles, fetchFromGitHub }:

buildGoModule rec {
  pname = "gum";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "charmbracelet";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-od0jJPfvczlru9hhO8ravGou6yYP91L2k37NYm2hD+k=";
  };

  vendorSha256 = "sha256-uX0CQRqrM0/fj14owcUUpYph2j5ZwJITG53na31N6kg=";

  nativeBuildInputs = [
    installShellFiles
  ];

  ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];

  postInstall = ''
    $out/bin/gum man > gum.1
    installManPage gum.1
    installShellCompletion --cmd gum \
      --bash <($out/bin/gum completion bash) \
      --fish <($out/bin/gum completion fish) \
      --zsh <($out/bin/gum completion zsh)
  '';

  meta = with lib; {
    description = "Tasty Bubble Gum for your shell";
    homepage = "https://github.com/charmbracelet/gum";
    changelog = "https://github.com/charmbracelet/gum/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ maaslalani ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -27434,6 +27434,8 @@ with pkgs;
  gtk-pipe-viewer = perlPackages.callPackage ../applications/video/pipe-viewer { withGtk3 = true; };
  gum = callPackage ../applications/misc/gum { };
  hydrus = python3Packages.callPackage ../applications/graphics/hydrus {
    inherit miniupnpc_2 swftools;
    inherit (qt5) wrapQtAppsHook;