ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / by-name / hb / hb-honeypot / package.nix
blob45ec85a3e8cf2ffcf382e754351d4905f7282cfa
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   makeWrapper,
6   perl,
7 }:
9 stdenv.mkDerivation {
10   pname = "hb-honeypot";
11   version = "0-unstable-2024-02-13";
13   src = fetchFromGitHub {
14     owner = "D3vil0p3r";
15     repo = "hb-honeypot";
16     rev = "06ca7336bfb7deca54eae2cee239496d26f21b5b";
17     hash = "sha256-vnq7u/sqDLD+PsZ9DlxfjNuTkO8lhZujjAgmTcWf/3I=";
18   };
20   nativeBuildInputs = [ makeWrapper ];
22   installPhase = ''
23     runHook preInstall
24     mkdir -p $out/{bin,share/hb-honeypot}
25     cp hb-honeypot.pl $out/share/hb-honeypot/
26     makeWrapper ${perl}/bin/perl $out/bin/hb-honeypot \
27       --add-flags "$out/share/hb-honeypot/hb-honeypot.pl"
28     runHook postInstall
29   '';
31   meta = with lib; {
32     description = "Script that listens on TCP port 443 and responds with completely bogus SSL heartbeat responses";
33     mainProgram = "hb-honeypot";
34     homepage = "https://github.com/D3vil0p3r/hb-honeypot";
35     maintainers = with maintainers; [ d3vil0p3r ];
36     platforms = platforms.unix;
37     license = licenses.gpl3Plus;
38   };