2009-03-02 16:23:52 +01:00
|
|
|
{ stdenv, fetchurl, openssl }:
|
|
|
|
|
2014-04-08 23:13:08 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "stunnel";
|
2019-11-29 15:19:53 +01:00
|
|
|
version = "5.56";
|
2014-04-08 23:13:08 +02:00
|
|
|
|
2009-03-02 16:23:52 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://www.stunnel.org/downloads/${pname}-${version}.tar.gz";
|
2019-11-29 15:19:53 +01:00
|
|
|
sha256 = "08kb4gi9fzqngrczykvba6xhaxhq9m4wmdbhxvgrva5rasrvz13k";
|
2018-02-01 01:00:00 +01:00
|
|
|
# please use the contents of "https://www.stunnel.org/downloads/${name}.tar.gz.sha256",
|
|
|
|
# not the output of `nix-prefetch-url`
|
2009-03-02 16:23:52 +01:00
|
|
|
};
|
|
|
|
|
2014-04-08 23:13:08 +02:00
|
|
|
buildInputs = [ openssl ];
|
2015-04-22 23:47:09 +02:00
|
|
|
configureFlags = [
|
2016-04-16 19:44:32 +02:00
|
|
|
"--with-ssl=${openssl.dev}"
|
2015-04-22 23:47:09 +02:00
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
2018-12-14 09:19:39 +01:00
|
|
|
postInstall = ''
|
|
|
|
# remove legacy compatibility-wrapper that would require perl
|
|
|
|
rm $out/bin/stunnel3
|
|
|
|
'';
|
|
|
|
|
2015-04-22 23:47:09 +02:00
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
2013-05-30 12:11:13 +02:00
|
|
|
|
2009-03-02 16:23:52 +01:00
|
|
|
meta = {
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "Universal tls/ssl wrapper";
|
2020-01-22 11:26:22 +01:00
|
|
|
homepage = "https://www.stunnel.org/";
|
2014-04-08 23:13:08 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
2009-03-02 16:23:52 +01:00
|
|
|
};
|
|
|
|
}
|