diff options
author | oluceps <i@oluceps.uk> | 2024-03-12 12:59:20 +0800 |
---|---|---|
committer | oluceps <i@oluceps.uk> | 2024-03-13 15:09:03 +0800 |
commit | a83d80974142ae4e437248bc7049b353407be224 (patch) | |
tree | e36cbcdb3a0accad70b9f5363793089cc32b2899 | |
parent | 6074e65d28612f97f54f4119595683e6f0065fb6 (diff) |
gg: init at 0.2.18
-rw-r--r-- | pkgs/by-name/gg/gg/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/gg/gg/package.nix b/pkgs/by-name/gg/gg/package.nix new file mode 100644 index 0000000000000..c07dd9bc99d5c --- /dev/null +++ b/pkgs/by-name/gg/gg/package.nix @@ -0,0 +1,41 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: +buildGoModule rec{ + pname = "gg"; + version = "0.2.18"; + + src = fetchFromGitHub { + owner = "mzz2017"; + repo = "gg"; + rev = "v${version}"; + hash = "sha256-07fP3dVFs4MZrFOH/8/4e3LHjFGZd7pNu6J3LBOWAd8="; + }; + + vendorHash = "sha256-fnM4ycqDyruCdCA1Cr4Ki48xeQiTG4l5dLVuAafEm14="; + + ldflags = [ + "-s" + "-w" + ]; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installShellCompletion --cmd gg \ + --bash completion/bash/gg \ + --fish completion/fish/gg.fish \ + --zsh completion/zsh/_gg + ''; + + meta = with lib; { + homepage = "https://github.com/mzz2017/gg"; + description = "Command-line tool for one-click proxy in your research and development"; + license = licenses.agpl3Only; + mainProgram = "gg"; + maintainers = with maintainers; [ oluceps ]; + platforms = platforms.linux; + }; +} |