Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions pkgs/by-name/go/goshs/package.nix
Original file line number Diff line number Diff line change
@@ -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";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description = "HTTP Server";
description = "Simple yet feature-rich web server";

I feel like the description should be something more than just "HTTP Server"? I grabbed this line from their website

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";
};
}