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