mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
chaos: modernize
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user