From bca73ae4285b508fd34c068931c75f0bbc90f78d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 6 Apr 2025 16:30:49 +0200 Subject: [PATCH] goshs: init at 1.0.2 HTTP Server https://github.com/patrickhener/goshs --- pkgs/by-name/go/goshs/package.nix | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/go/goshs/package.nix diff --git a/pkgs/by-name/go/goshs/package.nix b/pkgs/by-name/go/goshs/package.nix new file mode 100644 index 0000000000000..fe0934de1d3e7 --- /dev/null +++ b/pkgs/by-name/go/goshs/package.nix @@ -0,0 +1,38 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + versionCheckHook, +}: + +buildGoModule rec { + pname = "goshs"; + version = "1.0.2"; + + src = fetchFromGitHub { + owner = "patrickhener"; + repo = "goshs"; + tag = "v${version}"; + hash = "sha256-xq9BqWhUZfk4p5C6d5Eqh98bs0ZDTjpy5KnvhV/9Jew="; + }; + + vendorHash = "sha256-ECh0K3G6VAAJihqzzlWaEQclfXa0Wp/eFL16ABa7r+0="; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + ldflags = [ + "-s" + "-w" + ]; + + doInstallCheck = true; + + meta = { + description = "HTTP Server"; + homepage = "https://github.com/patrickhener/goshs"; + changelog = "https://github.com/patrickhener/goshs/releases/tag/${src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "goshs"; + }; +}