nixpkgs/pkgs/servers/sslh/default.nix

28 lines
771 B
Nix
Raw Normal View History

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