mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
4a6b7fc563
Signed-off-by: Austin Seipp <aseipp@pobox.com>
31 lines
754 B
Nix
31 lines
754 B
Nix
{ stdenv, fetchurl, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "stunnel-${version}";
|
|
version = "5.20";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.stunnel.org/downloads/${name}.tar.gz";
|
|
sha256 = "0ar940mw5sjxkh98d6wnrd366jfkqirbyf2b5kcdk1vjk9ra6dja";
|
|
};
|
|
|
|
buildInputs = [ openssl ];
|
|
configureFlags = [
|
|
"--with-ssl=${openssl}"
|
|
"--sysconfdir=/etc"
|
|
"--localstatedir=/var"
|
|
];
|
|
|
|
installFlags = [
|
|
"sysconfdir=\${out}/etc"
|
|
"localstatedir=\${TMPDIR}"
|
|
];
|
|
|
|
meta = {
|
|
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 ];
|
|
};
|
|
}
|