7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 sha256 = "sha256-Qh6BGPk7a01YzCeX42+Og9M+fjXRs7kzNUCyT4mYab4=";
18 outputs = [ "out" "dev" ];
26 # The existence of the "build" script causes `mkdir -p build` to fail:
27 # mkdir: cannot create directory 'build': File exists
33 "-DBUILD_SHARED_LIBS=ON"
34 "-DCIVETWEB_ENABLE_CXX=ON"
35 "-DCIVETWEB_ENABLE_IPV6=ON"
37 # The civetweb unit tests rely on downloading their fork of libcheck.
38 "-DCIVETWEB_BUILD_TESTING=OFF"
42 description = "Embedded C/C++ web server";
43 mainProgram = "civetweb";
44 homepage = "https://github.com/civetweb/civetweb";
45 license = [ lib.licenses.mit ];