2022-10-22 14:53:35 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, testers
|
|
|
|
, endlessh
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2019-05-21 03:00:00 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "endlessh";
|
2020-01-31 18:00:00 +01:00
|
|
|
version = "1.1";
|
2019-05-21 03:00:00 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "skeeto";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-22 14:53:35 +02:00
|
|
|
hash = "sha256-yHQzDrjZycDL/2oSQCJjxbZQJ30FoixVG1dnFyTKPH4=";
|
2019-05-21 03:00:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2022-10-22 14:53:35 +02:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) endlessh;
|
|
|
|
version = testers.testVersion {
|
|
|
|
package = endlessh;
|
|
|
|
command = "endlessh -V";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-21 03:00:00 +02:00
|
|
|
description = "SSH tarpit that slowly sends an endless banner";
|
|
|
|
homepage = "https://github.com/skeeto/endlessh";
|
2020-01-31 18:00:00 +01:00
|
|
|
changelog = "https://github.com/skeeto/endlessh/releases/tag/${version}";
|
2019-05-21 03:00:00 +02:00
|
|
|
license = licenses.unlicense;
|
2022-10-22 14:53:35 +02:00
|
|
|
maintainers = with maintainers; [ azahi marsam ];
|
2019-05-21 03:00:00 +02:00
|
|
|
platforms = platforms.unix;
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "endlessh";
|
2019-05-21 03:00:00 +02:00
|
|
|
};
|
|
|
|
}
|