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}";
|
2016-02-26 15:51:08 +00:00
|
|
|
version = "5.30";
|
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";
|
2016-02-26 15:51:08 +00:00
|
|
|
sha256 = "0w05sqwg3jn7n469w2yxj0cxx7az7jpd8wbcrwxlp5d1ys4v6vkx";
|
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 = [
|
|
|
|
"--with-ssl=${openssl}"
|
|
|
|
"--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 = {
|
2014-04-08 21:13:08 +00:00
|
|
|
description = "universal tls/ssl wrapper";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|