diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-11-01 23:44:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 23:44:25 +0100 |
commit | a01b2b807e7396987d5de08c41c15323c9957e3c (patch) | |
tree | ee5e4f1983c4d8aff193a9526ede0289df3c428a /pkgs | |
parent | 796cc1ad514ec46ab0631ec56e6cb4e397f36e26 (diff) | |
parent | 76ccbea1525199e169c3f59fc8dfc559a2c2a324 (diff) |
Merge pull request #197221 from azahi/endlessh-module
Diffstat (limited to 'pkgs')
-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; }; } |