mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
40 lines
871 B
Nix
40 lines
871 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, testers
|
|
, endlessh
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "endlessh";
|
|
version = "1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "skeeto";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-yHQzDrjZycDL/2oSQCJjxbZQJ30FoixVG1dnFyTKPH4=";
|
|
};
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) endlessh;
|
|
version = testers.testVersion {
|
|
package = endlessh;
|
|
command = "endlessh -V";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "SSH tarpit that slowly sends an endless banner";
|
|
homepage = "https://github.com/skeeto/endlessh";
|
|
changelog = "https://github.com/skeeto/endlessh/releases/tag/${version}";
|
|
license = licenses.unlicense;
|
|
maintainers = with maintainers; [ azahi marsam ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "endlessh";
|
|
};
|
|
}
|