From a7d399046271b704d7c5813dd8804b1bda587d33 Mon Sep 17 00:00:00 2001 From: Darryl Magadzika <135046711+Daru-san@users.noreply.github.com> Date: Wed, 22 May 2024 17:47:01 +0200 Subject: [PATCH] gh-s: init at 0.0.8 (#313455) --- pkgs/by-name/gh/gh-s/package.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/by-name/gh/gh-s/package.nix diff --git a/pkgs/by-name/gh/gh-s/package.nix b/pkgs/by-name/gh/gh-s/package.nix new file mode 100644 index 000000000000..93ca5454b29b --- /dev/null +++ b/pkgs/by-name/gh/gh-s/package.nix @@ -0,0 +1,32 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "gh-s"; + version = "0.0.8"; + + src = fetchFromGitHub { + owner = "gennaro-tedesco"; + repo = "gh-s"; + rev = "v${version}"; + hash = "sha256-hLfaAtWiJHCJ7MFz8dg4SJJB2cNY1gKUEwMAdRB4lr8="; + }; + + vendorHash = "sha256-5UJAgsPND6WrOZZ5PUZNdwd7/0NPdhD1SaZJzZ+2VvM="; + + ldflags = [ + "-s" + "-w" + ]; + + meta = with lib; { + description = "Search github repositories interactively"; + homepage = "https://github.com/gennaro-tedesco/gh-s"; + license = licenses.asl20; + maintainers = with maintainers; [ daru-san ]; + mainProgram = "gh-s"; + }; +}