nixpkgs/pkgs/tools/security/wprecon/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
770 B
Nix
Raw Normal View History

2021-04-21 16:46:40 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "wprecon";
2022-05-02 07:22:32 +00:00
version = "2.4.5";
2021-04-21 16:46:40 +00:00
src = fetchFromGitHub {
owner = "blackbinn";
repo = pname;
rev = version;
2022-05-02 07:22:32 +00:00
hash = "sha256-23zJD3Nnkeko+J2FjPq5RA5dIjORMXvwt3wtAYiVlQs=";
2021-04-21 16:46:40 +00:00
};
2022-05-02 07:22:32 +00:00
vendorSha256 = "sha256-FYdsLcW6FYxSgixZ5US9cBPABOAVwidC3ejUNbs1lbA=";
postFixup = ''
# Rename binary
mv $out/bin/cli $out/bin/${pname}
'';
2021-04-21 16:46:40 +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 ];
};
}