nixpkgs/pkgs/tools/networking/stunnel/default.nix

34 lines
906 B
Nix
Raw Normal View History

{ stdenv, fetchurl, openssl }:
stdenv.mkDerivation rec {
name = "stunnel-${version}";
2018-01-04 11:34:41 +03:00
version = "5.44";
src = fetchurl {
2018-02-01 03:00:00 +03:00
url = "https://www.stunnel.org/downloads/${name}.tar.gz";
sha256 = "990a325dbb47d77d88772dd02fbbd27d91b1fea3ece76c9ff4461eca93f12299";
# please use the contents of "https://www.stunnel.org/downloads/${name}.tar.gz.sha256",
# not the output of `nix-prefetch-url`
};
buildInputs = [ openssl ];
2015-04-23 00:47:09 +03:00
configureFlags = [
"--with-ssl=${openssl.dev}"
2015-04-23 00:47:09 +03:00
"--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 ];
};
}