2009-03-02 15:23:52 +00:00
|
|
|
{ stdenv, fetchurl, openssl }:
|
|
|
|
|
2014-04-08 21:13:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "stunnel-${version}";
|
2017-01-26 02:48:08 +00:00
|
|
|
version = "5.39";
|
2014-04-08 21:13:08 +00:00
|
|
|
|
2009-03-02 15:23:52 +00:00
|
|
|
src = fetchurl {
|
2014-04-08 21:13:08 +00:00
|
|
|
url = "http://www.stunnel.org/downloads/${name}.tar.gz";
|
2017-01-26 02:48:08 +00:00
|
|
|
sha256 = "1vjdn32iw11zqsygwxbjmqgs4644dk3ql1h8ap890ls6a1x0i318";
|
2009-03-02 15:23:52 +00:00
|
|
|
};
|
|
|
|
|
2014-04-08 21:13:08 +00:00
|
|
|
buildInputs = [ openssl ];
|
2015-04-22 21:47:09 +00:00
|
|
|
configureFlags = [
|
2016-04-16 17:44:32 +00:00
|
|
|
"--with-ssl=${openssl.dev}"
|
2015-04-22 21:47:09 +00:00
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--localstatedir=/var"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=\${out}/etc"
|
|
|
|
"localstatedir=\${TMPDIR}"
|
|
|
|
];
|
2013-05-30 10:11:13 +00:00
|
|
|
|
2009-03-02 15:23:52 +00:00
|
|
|
meta = {
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Universal tls/ssl wrapper";
|
2014-04-08 21:13:08 +00: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
|
|
|
};
|
|
|
|
}
|