summary refs log tree commit diff
path: root/pkgs/servers/sslh/default.nix
blob: d646e28fb0f4997e9ff15cb1e7b4c2a75b0cf6e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, libcap, libconfig, perl }:

stdenv.mkDerivation rec {
  name = "sslh-${version}";
  version = "1.16";

  src = fetchurl {
    url = "https://github.com/yrutschle/sslh/archive/v${version}.tar.gz";
    sha256 = "0xwi2bflvq4phrqjic84xch20jkg3wdys219mw2cy23sjkzk63mb";
  };

  postPatch = "patchShebangs *.sh";

  buildInputs = [ libcap libconfig perl ];

  makeFlags = "USELIBCAP=1";

  installFlags = "PREFIX=$(out)";

  meta = with stdenv.lib; {
    description = "Applicative Protocol Multiplexer (e.g. share SSH and HTTPS on the same port)";
    license = licenses.gpl2Plus;
    homepage = http://www.rutschle.net/tech/sslh.shtml;
    maintainers = [ maintainers.koral ];
    platforms = platforms.all;
  };
}