nixpkgs/pkgs/servers/sslh/default.nix

30 lines
846 B
Nix
Raw Normal View History

2018-01-28 03:19:26 +03:00
{ stdenv, fetchurl, libcap, libconfig, perl, tcp_wrappers, pcre }:
2015-02-05 02:36:27 +03:00
stdenv.mkDerivation rec {
name = "sslh-${version}";
2018-11-22 15:38:16 +03:00
version = "1.20";
2015-02-05 02:36:27 +03:00
src = fetchurl {
url = "https://www.rutschle.net/tech/sslh/sslh-v${version}.tar.gz";
2018-11-22 15:38:16 +03:00
sha256 = "05jihpjxx094h7hqzgd9v5jmy77ipwrakzzmjyfvpdzw3h59px57";
2015-02-05 02:36:27 +03:00
};
postPatch = "patchShebangs *.sh";
2018-01-28 03:19:26 +03:00
buildInputs = [ libcap libconfig perl tcp_wrappers pcre ];
2015-02-05 02:36:27 +03:00
2018-11-22 15:38:16 +03:00
makeFlags = [ "USELIBCAP=1" "USELIBWRAP=1" ];
2015-02-05 02:36:27 +03:00
2018-11-22 15:38:16 +03:00
installFlags = [ "PREFIX=$(out)" ];
hardeningDisable = [ "format" ];
2015-02-05 02:36:27 +03:00
meta = with stdenv.lib; {
description = "Applicative Protocol Multiplexer (e.g. share SSH and HTTPS on the same port)";
license = licenses.gpl2Plus;
2018-11-22 15:38:16 +03:00
homepage = https://www.rutschle.net/tech/sslh/README.html;
2016-05-13 01:01:57 +03:00
maintainers = with maintainers; [ koral fpletz ];
2015-02-05 02:36:27 +03:00
platforms = platforms.all;
};
}