chaos: refactor (#362731)

This commit is contained in:
Fabian Affolter
2024-12-08 09:58:08 +01:00
committed by GitHub
+16 -5
View File
@@ -1,6 +1,8 @@
{ lib
, buildGoModule
, fetchFromGitHub
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule rec {
@@ -16,10 +18,19 @@ buildGoModule rec {
vendorHash = "sha256-c5J2cTzyb7CiBlS4vS3PdRhr6DhIvXE2lt40u0s6G0k=";
subPackages = [
"cmd/chaos/"
subPackages = [ "cmd/chaos/" ];
ldflags = [
"-s"
"-w"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = [ "--version" ];
meta = with lib; {
description = "Tool to communicate with Chaos DNS API";
homepage = "https://github.com/projectdiscovery/chaos-client";