From 69cb995812d96731432bb047ed8e50e49c6c03ce Mon Sep 17 00:00:00 2001 From: phanirithvij Date: Tue, 6 Aug 2024 21:02:07 +0530 Subject: [PATCH] gh-i: init at 0.0.7 Signed-off-by: phanirithvij --- pkgs/by-name/gh/gh-i/package.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/by-name/gh/gh-i/package.nix diff --git a/pkgs/by-name/gh/gh-i/package.nix b/pkgs/by-name/gh/gh-i/package.nix new file mode 100644 index 000000000000..aa94719e4edb --- /dev/null +++ b/pkgs/by-name/gh/gh-i/package.nix @@ -0,0 +1,30 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "gh-i"; + version = "0.0.7"; + + src = fetchFromGitHub { + owner = "gennaro-tedesco"; + repo = "gh-i"; + rev = "v${version}"; + hash = "sha256-nVMWeXssSpfWsD20+qLvQp6Wlrp/DiVNLBR6qnvuD2M="; + }; + + vendorHash = "sha256-TSl+7N3W3BeW8UWxUdTv3cob2P7eLvO+80BLqcbhanQ="; + + ldflags = [ "-s" ]; + + meta = with lib; { + description = "Search github issues interactively"; + changelog = "https://github.com/gennaro-tedesco/gh-i/releases/tag/v${version}"; + homepage = "https://github.com/gennaro-tedesco/gh-i"; + license = licenses.asl20; + maintainers = with maintainers; [ phanirithvij ]; + mainProgram = "gh-i"; + }; +}