nixpkgs-suyu/pkgs/servers/sslh/default.nix

28 lines
771 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libcap, libconfig, perl, tcp_wrappers }:
2015-02-05 00:36:27 +01:00
stdenv.mkDerivation rec {
name = "sslh-${version}";
2015-04-11 11:56:45 +02:00
version = "1.17";
2015-02-05 00:36:27 +01:00
src = fetchurl {
url = "https://github.com/yrutschle/sslh/archive/v${version}.tar.gz";
2015-04-11 11:56:45 +02:00
sha256 = "1l8ssm47f0hwiisgfj0ca5j2z8j98pir4pf2acrj1798fnzw6mxm";
2015-02-05 00:36:27 +01:00
};
postPatch = "patchShebangs *.sh";
buildInputs = [ libcap libconfig perl tcp_wrappers ];
2015-02-05 00:36:27 +01:00
makeFlags = "USELIBCAP=1 USELIBWRAP=1";
2015-02-05 00:36:27 +01:00
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;
};
}