2017-10-20 17:16:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, boost, pkgconfig, doxygen, qt48Full, libharu
|
2017-12-27 15:15:33 +00:00
|
|
|
, pango, fcgi, firebird, mysql, postgresql, graphicsmagick, glew, openssl
|
2017-10-20 17:16:40 +01:00
|
|
|
, pcre
|
|
|
|
}:
|
2016-08-08 13:52:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-20 17:16:40 +01:00
|
|
|
name = "wt-${version}";
|
2017-10-19 15:05:35 +01:00
|
|
|
version = "4.0.0";
|
2016-08-08 13:52:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kdeforche";
|
2017-10-20 17:16:40 +01:00
|
|
|
repo = "wt";
|
2016-08-08 13:52:55 +01:00
|
|
|
rev = version;
|
2017-10-19 15:05:35 +01:00
|
|
|
sha256 = "1451xxvnx6mlvxg0jxlr1mfv5v18h2214kijk5kacilqashfc43i";
|
2016-08-08 13:52:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-10-20 17:16:40 +01:00
|
|
|
buildInputs = [
|
|
|
|
cmake boost doxygen qt48Full libharu
|
2017-12-27 15:15:33 +00:00
|
|
|
pango fcgi firebird mysql.connector-c postgresql graphicsmagick glew
|
2017-10-20 17:16:40 +01:00
|
|
|
openssl pcre
|
|
|
|
];
|
2016-08-08 13:52:55 +01:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick"
|
|
|
|
"-DWT_CPP_11_MODE=-std=c++11"
|
|
|
|
"-DGM_PREFIX=${graphicsmagick}"
|
2017-12-27 15:15:33 +00:00
|
|
|
"-DMYSQL_PREFIX=${mysql.connector-c}"
|
2016-08-08 13:52:55 +01:00
|
|
|
"--no-warn-unused-cli"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://www.webtoolkit.eu/wt;
|
2016-08-08 13:52:55 +01:00
|
|
|
description = "C++ library for developing web applications";
|
2017-10-20 17:16:40 +01:00
|
|
|
platforms = platforms.linux;
|
2016-08-08 13:52:55 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.juliendehos ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|