@@ -0,0 +1,40 @@
1+{stdenv, fetchFromGitHub, cmake, boost, pkgconfig, doxygen, qt48Full, libharu,
2+ pango, fcgi, firebird, libmysql, postgresql, graphicsmagick, glew, openssl,
3+ pcre }:
4+
5+stdenv.mkDerivation rec {
6+ name = "wt";
7+ version = "3.3.6";
8+
9+ src = fetchFromGitHub {
10+ owner = "kdeforche";
11+ repo = name;
12+ rev = version;
13+ sha256 = "1pvykc969l9cpd0da8bgpi4gr8f6qczrbpprrxamyj1pn0ydzvq3";
14+ };
15+
16+ enableParallelBuilding = true;
17+
18+ buildInputs = [ cmake boost pkgconfig doxygen qt48Full libharu
19+ pango fcgi firebird libmysql postgresql graphicsmagick glew
20+ openssl pcre ];
21+
22+ cmakeFlags = [
23+ "-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick"
24+ "-DWT_CPP_11_MODE=-std=c++11"
25+ "-DGM_PREFIX=${graphicsmagick}"
26+ "-DMYSQL_PREFIX=${libmysql}"
27+ "--no-warn-unused-cli"
28+ ];
29+
30+ patches = [ ./cmake.patch ]; # fix a cmake warning; PR sent to upstream
31+
32+ meta = with stdenv.lib; {
33+ homepage = "https://www.webtoolkit.eu/wt";
34+ description = "C++ library for developing web applications";
35+ platforms = platforms.linux ;
36+ license = licenses.gpl2;
37+ maintainers = [ maintainers.juliendehos ];
38+ };
39+}
40+