From b6e7d865251da67399203a9cd48917dae1584603 Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Tue, 23 Apr 2013 14:30:57 +0300 Subject: [PATCH] Lighttpd: Enable SSL With this patch support for SSL is compiled into lighttpd. IMO encryption is in most use cases important, therefore SSL support should be build in. This would simplify the setup of a standard web application a lot. SSL support of lighttpd is documented at http://redmine.lighttpd.net/projects/1/wiki/Docs_SSL --- pkgs/servers/http/lighttpd/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/http/lighttpd/default.nix b/pkgs/servers/http/lighttpd/default.nix index 66bc45de942..463840fcf4c 100644 --- a/pkgs/servers/http/lighttpd/default.nix +++ b/pkgs/servers/http/lighttpd/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pcre, libxml2, zlib, attr, bzip2, which, file }: +{ stdenv, fetchurl, pcre, libxml2, zlib, attr, bzip2, which, file, openssl }: stdenv.mkDerivation { name = "lighttpd-1.4.32"; @@ -8,7 +8,9 @@ stdenv.mkDerivation { sha256 = "1hgd9bi4mrak732h57na89lqg58b1kkchnddij9gawffd40ghs0k"; }; - buildInputs = [ pcre libxml2 zlib attr bzip2 which file ]; + buildInputs = [ pcre libxml2 zlib attr bzip2 which file openssl ]; + + configureFlags = "--with-openssl --with-openssl-libs=${openssl}"; preConfigure = '' sed -i "s:/usr/bin/file:${file}/bin/file:g" configure