1{ stdenv, fetchurl, libcap, libconfig, perl, tcp_wrappers }:
2
3stdenv.mkDerivation rec {
4 name = "sslh-${version}";
5 version = "1.17";
6
7 src = fetchurl {
8 url = "https://github.com/yrutschle/sslh/archive/v${version}.tar.gz";
9 sha256 = "1l8ssm47f0hwiisgfj0ca5j2z8j98pir4pf2acrj1798fnzw6mxm";
10 };
11
12 postPatch = "patchShebangs *.sh";
13
14 buildInputs = [ libcap libconfig perl tcp_wrappers ];
15
16 makeFlags = "USELIBCAP=1 USELIBWRAP=1";
17
18 installFlags = "PREFIX=$(out)";
19
20 meta = with stdenv.lib; {
21 description = "Applicative Protocol Multiplexer (e.g. share SSH and HTTPS on the same port)";
22 license = licenses.gpl2Plus;
23 homepage = http://www.rutschle.net/tech/sslh.shtml;
24 maintainers = [ maintainers.koral ];
25 platforms = platforms.all;
26 };
27}