diff options
Diffstat (limited to 'pkgs/servers/endlessh')
-rw-r--r-- | pkgs/servers/endlessh/default.nix | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/pkgs/servers/endlessh/default.nix b/pkgs/servers/endlessh/default.nix index fc05ec033d4b5..e408c764939f1 100644 --- a/pkgs/servers/endlessh/default.nix +++ b/pkgs/servers/endlessh/default.nix @@ -1,4 +1,10 @@ -{ lib, stdenv, fetchFromGitHub }: +{ lib +, stdenv +, fetchFromGitHub +, testers +, endlessh +, nixosTests +}: stdenv.mkDerivation rec { pname = "endlessh"; @@ -8,17 +14,25 @@ stdenv.mkDerivation rec { owner = "skeeto"; repo = pname; rev = version; - sha256 = "0ziwr8j1frsp3dajr8h5glkm1dn5cci404kazz5w1jfrp0736x68"; + 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 = [ maintainers.marsam ]; + maintainers = with maintainers; [ azahi marsam ]; platforms = platforms.unix; }; } |