2021-04-22 02:08:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "wprecon";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "2.4.5";
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "blackbinn";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
hash = "sha256-23zJD3Nnkeko+J2FjPq5RA5dIjORMXvwt3wtAYiVlQs=";
|
2021-04-22 02:08:21 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-FYdsLcW6FYxSgixZ5US9cBPABOAVwidC3ejUNbs1lbA=";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
# Rename binary
|
|
|
|
mv $out/bin/cli $out/bin/${pname}
|
|
|
|
'';
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "WordPress vulnerability recognition tool";
|
|
|
|
homepage = "https://github.com/blackbinn/wprecon";
|
|
|
|
# License Zero Noncommercial Public License 2.0.1
|
|
|
|
# https://github.com/blackbinn/wprecon/blob/master/LICENSE
|
|
|
|
license = with licenses; [ unfree ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|