1{ stdenv, fetchFromGitHub, cmake, boost165, pkgconfig, doxygen, qt48Full, libharu
2, pango, fcgi, firebird, mysql, postgresql, graphicsmagick, glew, openssl
3, pcre
4}:
5
6let
7 generic =
8 { version, sha256 }:
9 stdenv.mkDerivation rec {
10 name = "wt-${version}";
11
12 src = fetchFromGitHub {
13 owner = "kdeforche";
14 repo = "wt";
15 rev = version;
16 inherit sha256;
17 };
18
19 enableParallelBuilding = true;
20
21 nativeBuildInputs = [ pkgconfig ];
22 buildInputs = [
23 cmake boost165 doxygen qt48Full libharu
24 pango fcgi firebird mysql.connector-c postgresql graphicsmagick glew
25 openssl pcre
26 ];
27
28 cmakeFlags = [
29 "-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick"
30 "-DWT_CPP_11_MODE=-std=c++11"
31 "-DGM_PREFIX=${graphicsmagick}"
32 "-DMYSQL_PREFIX=${mysql.connector-c}"
33 "--no-warn-unused-cli"
34 ];
35
36 meta = with stdenv.lib; {
37 homepage = https://www.webtoolkit.eu/wt;
38 description = "C++ library for developing web applications";
39 platforms = platforms.linux;
40 license = licenses.gpl2;
41 maintainers = with maintainers; [ juliendehos willibutz ];
42 };
43 };
44in {
45 wt3 = generic {
46 # with the next version update the version pinning of boost should be omitted
47 version = "3.3.9";
48 sha256 = "1mkflhvzzzxkc5yzvr6nk34j0ldpwxjxb6n7xml59h3j3px3ixjm";
49 };
50
51 wt4 = generic {
52 # with the next version update the version pinning of boost should be omitted
53 version = "4.0.2";
54 sha256 = "0r729gjd1sy0pcmir2r7ga33mp5cr5b4gvf44852q65hw2577w1x";
55 };
56}