49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
writableTmpDirAsHomeHook,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "wpprobe";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Chocapikk";
|
|
repo = "wpprobe";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Cu0Bs9oDD/OAKASLXsLPve0e92PoHUaLmk6C+VDIaCU=";
|
|
};
|
|
|
|
vendorHash = "sha256-pAKFrdja+rH0kiJH6hToZwLjE8lLBHFAUCjnCLbgxVo=";
|
|
|
|
nativeCheckInputs = [
|
|
versionCheckHook
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/Chocapikk/wpprobe/internal/utils.Version=v${finalAttrs.version}"
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
|
|
checkFlags = [
|
|
# Test requires network access
|
|
"-skip=TestUpdateWordfence"
|
|
];
|
|
|
|
meta = {
|
|
description = "WordPress plugin enumeration tool";
|
|
homepage = "https://github.com/Chocapikk/wpprobe";
|
|
changelog = "https://github.com/Chocapikk/wpprobe/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "wpprobe";
|
|
};
|
|
})
|