2021-09-20 09:15:03 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libcap, libconfig, perl, tcp_wrappers, pcre2, nixosTests }:
|
2015-02-05 00:36:27 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "sslh";
|
2021-09-20 09:15:03 +02:00
|
|
|
version = "1.22c";
|
2015-02-05 00:36:27 +01:00
|
|
|
|
2021-09-20 09:15:03 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yrutschle";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-A+nUWiOPoz/T5afZUzt5In01e049TgHisTF8P5Vj180=";
|
2015-02-05 00:36:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = "patchShebangs *.sh";
|
|
|
|
|
2021-09-20 09:15:03 +02:00
|
|
|
buildInputs = [ libcap libconfig perl tcp_wrappers pcre2 ];
|
2015-02-05 00:36:27 +01:00
|
|
|
|
2018-11-22 13:38:16 +01:00
|
|
|
makeFlags = [ "USELIBCAP=1" "USELIBWRAP=1" ];
|
2015-02-05 00:36:27 +01:00
|
|
|
|
2018-11-22 13:38:16 +01:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
2015-02-05 00:36:27 +01:00
|
|
|
|
2020-01-18 13:00:00 +01:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) sslh;
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-02-05 00:36:27 +01:00
|
|
|
description = "Applicative Protocol Multiplexer (e.g. share SSH and HTTPS on the same port)";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.rutschle.net/tech/sslh/README.html";
|
2016-05-13 00:01:57 +02:00
|
|
|
maintainers = with maintainers; [ koral fpletz ];
|
2015-02-05 00:36:27 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|