goshs: 1.1.4 -> 2.0.0-beta.3

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer
2026-04-08 15:18:08 +02:00
parent 682d57dc23
commit 112f0cc8a8
+14 -6
View File
@@ -2,30 +2,31 @@
buildGoModule,
fetchFromGitHub,
stdenv,
versionCheckHook,
lib,
testers,
# passthru
goshs,
}:
buildGoModule (finalAttrs: {
pname = "goshs";
version = "1.1.4";
version = "2.0.0-beta.3";
src = fetchFromGitHub {
owner = "patrickhener";
repo = "goshs";
tag = "v${finalAttrs.version}";
hash = "sha256-7z/7dUTDHteAwK78hbrvsHk3Gnv7ZSvaW25sC3vkwW4=";
hash = "sha256-ELYeabx0hb4oy2RH0yUIt6xTb2rm1eqxZIH+VhEZlvU=";
};
vendorHash = "sha256-43Bu4BAmMmd6WrDNztQNCi2OdlzIfbrQC100DkcD4uE=";
vendorHash = "sha256-EXu1VQWxbKa0EkfqgOL8MDnOCGd8yynP1Bko5wqRCBg=";
ldflags = [
"-s"
"-w"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
preCheck = ''
@@ -41,6 +42,13 @@ buildGoModule (finalAttrs: {
"-skip=^TestGetIPv4Addr$"
];
# Disabled until https://github.com/patrickhener/goshs/issues/137 is resolved
# passthru.tests.version = testers.testVersion {
# package = goshs;
# command = "goshs -v";
# version = "goshs ${finalAttrs.version}";
# };
meta = {
description = "Simple, yet feature-rich web server written in Go";
homepage = "https://goshs.de";