Files
nixpkgs/pkgs/by-name/go/goshs/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.2 KiB
Nix

{
buildGoModule,
fetchFromGitHub,
stdenv,
versionCheckHook,
lib,
}:
buildGoModule (finalAttrs: {
pname = "goshs";
version = "1.1.1";
src = fetchFromGitHub {
owner = "patrickhener";
repo = "goshs";
tag = "v${finalAttrs.version}";
hash = "sha256-MgWYbM48VbbmiY5mlDWnyU20/SPziHfZQXwNRZ435Mg=";
};
vendorHash = "sha256-eu4ytWargmwSfCVfXPykCX0VD7XO7m/T8Her10XpM3s=";
ldflags = [
"-s"
"-w"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
preCheck = ''
# Possible race condition
rm integration/integration_test.go
# This is handled by nixpkgs
rm update/update_test.go
'';
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
# utils_test.go:62: route ip+net: no such network interface
# does not work in sandbox even with __darwinAllowLocalNetworking
"-skip=^TestGetIPv4Addr$"
];
meta = {
description = "Simple, yet feature-rich web server written in Go";
homepage = "https://goshs.de";
changelog = "https://github.com/patrickhener/goshs/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
fab
matthiasbeyer
seiarotg
];
mainProgram = "goshs";
};
})