9 , enableCache ? true # Internal cache support.
12 , enableMonitor ? false # Support for the Hiawatha Monitor.
13 , enableRproxy ? true # Reverse proxy support.
14 , enableTomahawk ? false # Tomahawk, the Hiawatha command shell.
15 , enableXslt ? true, libxml2 ? null, libxslt ? null
16 , enableToolkit ? true # The URL Toolkit.
19 stdenv.mkDerivation rec {
23 src = fetchFromGitLab {
27 sha256 = "10a7dqj37zrbmgnhwsw0mqm5x25kasl8p95g01rzakviwxkdrkid";
30 nativeBuildInputs = [ cmake ninja ];
31 buildInputs = [ mbedtls_2 libxcrypt ] ++ lib.optionals enableXslt [ libxslt libxml2 ];
34 substituteInPlace CMakeLists.txt --replace SETUID ""
38 "-DUSE_SYSTEM_MBEDTLS=on" # Policy to use Nix deps, and Nix uses up to date deps
39 ( if enableCache then "-DENABLE_CACHE=on" else "-DENABLE_CACHE=off" )
40 ( if enableIpV6 then "-DENABLE_IPV6=on" else "-DENABLE_IPV6=off" )
41 ( if enableTls then "-DENABLE_TLS=on" else "-DENABLE_TLS=off" )
42 ( if enableMonitor then "-DENABLE_MONITOR=on" else "-DENABLE_MONITOR=off" )
43 ( if enableRproxy then "-DENABLE_RPROXY=on" else "-DENABLE_RPROXY=off" )
44 ( if enableTomahawk then "-DENABLE_TOMAHAWK=on" else "-DENABLE_TOMAHAWK=off" )
45 ( if enableXslt then "-DENABLE_XSLT=on" else "-DENABLE_XSLT=off" )
46 ( if enableToolkit then "-DENABLE_TOOLKIT=on" else "-DENABLE_TOOLKIT=off" )
50 homepage = "https://www.hiawatha-webserver.org";
51 description = "An advanced and secure webserver";
52 license = licenses.gpl2;
53 platforms = platforms.unix; # "Hiawatha runs perfectly on Linux, BSD and MacOS X"