nixpkgs/pkgs/servers/sslh/default.nix

34 lines
907 B
Nix
Raw Normal View History

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