cdncheck: modernize

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-08-23 03:09:34 -04:00
parent df108e90e7
commit 6aae562ffb

View File

@@ -2,12 +2,16 @@
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
writableTmpDirAsHomeHook,
}:
buildGoModule (finalAttrs: {
pname = "cdncheck";
version = "1.2.50";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "projectdiscovery";
repo = "cdncheck";
@@ -21,7 +25,6 @@ buildGoModule (finalAttrs: {
ldflags = [
"-s"
"-w"
];
preCheck = ''
@@ -31,6 +34,13 @@ buildGoModule (finalAttrs: {
--replace-fail "TestCheckDNSResponse" "SkipTestCheckDNSResponse"
'';
nativeInstallCheckInputs = [
versionCheckHook
writableTmpDirAsHomeHook
];
versionCheckKeepEnvironment = [ "HOME" ];
doInstallCheck = true;
meta = {
description = "Tool to detect various technology for a given IP address";
homepage = "https://github.com/projectdiscovery/cdncheck";