about summary refs log tree commit diff
path: root/pkgs/servers/sslh
diff options
context:
space:
mode:
authorkoral <koral@mailoo.org>2015-02-05 00:36:27 +0100
committerkoral <koral@mailoo.org>2015-02-05 13:30:39 +0100
commit1439e72147bf73adb862fd2d153602a5e52103d7 (patch)
tree81f8da6bd72c497bb98d29697583d67adfb39a07 /pkgs/servers/sslh
parentb9cc04329b19119ae0b2a410868d014f3f82cf10 (diff)
New sslh module.
Diffstat (limited to 'pkgs/servers/sslh')
-rw-r--r--pkgs/servers/sslh/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/servers/sslh/default.nix b/pkgs/servers/sslh/default.nix
new file mode 100644
index 0000000000000..d646e28fb0f49
--- /dev/null
+++ b/pkgs/servers/sslh/default.nix
@@ -0,0 +1,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;
+  };
+}