-
-
Notifications
You must be signed in to change notification settings - Fork 19.7k
goshs: init at 1.0.2 #366872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
goshs: init at 1.0.2 #366872
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| { | ||
| buildGoModule, | ||
| fetchFromGitHub, | ||
| gitUpdater, | ||
| stdenv, | ||
| versionCheckHook, | ||
| lib, | ||
| }: | ||
|
|
||
| buildGoModule (finalAttrs: { | ||
| pname = "goshs"; | ||
| version = "1.0.2"; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "patrickhener"; | ||
| repo = "goshs"; | ||
| tag = "v${finalAttrs.version}"; | ||
| hash = "sha256-xq9BqWhUZfk4p5C6d5Eqh98bs0ZDTjpy5KnvhV/9Jew="; | ||
| }; | ||
|
|
||
| vendorHash = "sha256-ECh0K3G6VAAJihqzzlWaEQclfXa0Wp/eFL16ABa7r+0="; | ||
|
|
||
| ldflags = [ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why these ldflags?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These two flags disable symbol generation and DWARF generation respectively and are AFAICT fairly standard for release-build Go packages. No need to strip them out later if we never generate them to begin with |
||
| "-s" | ||
| "-w" | ||
| ]; | ||
|
|
||
|
SEIAROTg marked this conversation as resolved.
Outdated
SEIAROTg marked this conversation as resolved.
Outdated
SEIAROTg marked this conversation as resolved.
Outdated
|
||
| nativeInstallCheckInputs = [ versionCheckHook ]; | ||
| doInstallCheck = true; | ||
| 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$" | ||
| ]; | ||
|
|
||
| passthru.updateScript = gitUpdater { rev-prefix = "v"; }; | ||
|
|
||
| meta = { | ||
| description = "Simple, yet feature-rich web server written in Go"; | ||
| homepage = "https://goshs.de"; | ||
|
SEIAROTg marked this conversation as resolved.
Outdated
|
||
| changelog = "https://github.com/patrickhener/goshs/releases/tag/v${finalAttrs.version}"; | ||
| license = lib.licenses.mit; | ||
| maintainers = with lib.maintainers; [ | ||
| fab | ||
| matthiasbeyer | ||
| seiarotg | ||
| ]; | ||
| mainProgram = "goshs"; | ||
| }; | ||
| }) | ||
Uh oh!
There was an error while loading. Please reload this page.