chaos: modernize

This commit is contained in:
Fabian Affolter
2026-08-23 11:21:30 +02:00
parent 2a57f7e1ae
commit cc50827fa0

View File

@@ -9,6 +9,8 @@ buildGoModule (finalAttrs: {
pname = "chaos";
version = "0.5.2";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "projectdiscovery";
repo = "chaos-client";
@@ -20,10 +22,7 @@ buildGoModule (finalAttrs: {
subPackages = [ "cmd/chaos/" ];
ldflags = [
"-s"
"-w"
];
ldflags = [ "-s" ];
nativeInstallCheckInputs = [ versionCheckHook ];
@@ -32,7 +31,7 @@ buildGoModule (finalAttrs: {
meta = {
description = "Tool to communicate with Chaos DNS API";
homepage = "https://github.com/projectdiscovery/chaos-client";
changelog = "https://github.com/projectdiscovery/chaos-client/releases/tag/v${finalAttrs.version}";
changelog = "https://github.com/projectdiscovery/chaos-client/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "chaos";