2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, libcap, libconfig, perl, tcp_wrappers, pcre, nixosTests }:
|
2015-02-04 23:36:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sslh";
|
2020-08-31 05:40:31 +00:00
|
|
|
version = "1.21c";
|
2015-02-04 23:36:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://www.rutschle.net/tech/sslh/sslh-v${version}.tar.gz";
|
2020-08-31 05:40:31 +00:00
|
|
|
sha256 = "01p7w74ppszxgz6n41lqd6xqvc7bjk2dsc769dd1yb7q4qvpiziv";
|
2015-02-04 23:36:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = "patchShebangs *.sh";
|
|
|
|
|
2018-01-28 00:19:26 +00:00
|
|
|
buildInputs = [ libcap libconfig perl tcp_wrappers pcre ];
|
2015-02-04 23:36:27 +00:00
|
|
|
|
2018-11-22 12:38:16 +00:00
|
|
|
makeFlags = [ "USELIBCAP=1" "USELIBWRAP=1" ];
|
2015-02-04 23:36:27 +00:00
|
|
|
|
2018-11-22 12:38:16 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
2015-02-04 23:36:27 +00:00
|
|
|
|
2020-01-18 12:00:00 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) sslh;
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-02-04 23:36:27 +00:00
|
|
|
description = "Applicative Protocol Multiplexer (e.g. share SSH and HTTPS on the same port)";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.rutschle.net/tech/sslh/README.html";
|
2016-05-12 22:01:57 +00:00
|
|
|
maintainers = with maintainers; [ koral fpletz ];
|
2015-02-04 23:36:27 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|