about summary refs log tree commit diff
path: root/pkgs/development/libraries/wt
diff options
context:
space:
mode:
authorJulien Dehos <dehos@lisic.univ-littoral.fr>2016-08-08 14:52:55 +0200
committerJulien Dehos <dehos@lisic.univ-littoral.fr>2016-08-16 21:01:45 +0200
commit1d6464003f2596501123617a2bd992bc75f8fdd1 (patch)
treed77e6d397eb65f35607f26258dbabb85d8207db3 /pkgs/development/libraries/wt
parentf242b752fec061ec5afe6f1b3b5f948bded23e9a (diff)
wt: init at 3.3.6
Diffstat (limited to 'pkgs/development/libraries/wt')
-rw-r--r--pkgs/development/libraries/wt/cmake.patch10
-rw-r--r--pkgs/development/libraries/wt/default.nix40
2 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/development/libraries/wt/cmake.patch b/pkgs/development/libraries/wt/cmake.patch
new file mode 100644
index 0000000000000..e7b1f87411d91
--- /dev/null
+++ b/pkgs/development/libraries/wt/cmake.patch
@@ -0,0 +1,10 @@
+--- a/CMakeLists.txt	2016-07-13 14:27:26.000000000 +0200
++++ b/CMakeLists.txt	2016-08-16 12:58:28.135652964 +0200
+@@ -6,6 +6,7 @@
+   CMAKE_POLICY(SET CMP0002 OLD)
+   CMAKE_POLICY(SET CMP0003 OLD)
+   CMAKE_POLICY(SET CMP0005 OLD)
++  CMAKE_POLICY(SET CMP0037 OLD)
+ ENDIF(COMMAND CMAKE_POLICY)
+ 
+ PROJECT(WT)
diff --git a/pkgs/development/libraries/wt/default.nix b/pkgs/development/libraries/wt/default.nix
new file mode 100644
index 0000000000000..4461975402b8c
--- /dev/null
+++ b/pkgs/development/libraries/wt/default.nix
@@ -0,0 +1,40 @@
+{stdenv, fetchFromGitHub, cmake, boost, pkgconfig, doxygen, qt48Full, libharu, 
+  pango, fcgi, firebird, libmysql, postgresql, graphicsmagick, glew, openssl,
+  pcre }:
+
+stdenv.mkDerivation rec {
+  name = "wt";
+  version = "3.3.6";
+
+  src = fetchFromGitHub {
+    owner = "kdeforche";
+    repo = name;
+    rev = version;
+    sha256 = "1pvykc969l9cpd0da8bgpi4gr8f6qczrbpprrxamyj1pn0ydzvq3";
+  };
+
+  enableParallelBuilding = true;
+
+  buildInputs = [ cmake boost pkgconfig doxygen qt48Full libharu 
+    pango fcgi firebird libmysql postgresql graphicsmagick glew 
+    openssl pcre ];
+
+  cmakeFlags = [
+    "-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick"
+    "-DWT_CPP_11_MODE=-std=c++11"
+    "-DGM_PREFIX=${graphicsmagick}"
+    "-DMYSQL_PREFIX=${libmysql}"
+    "--no-warn-unused-cli"
+  ];
+
+  patches = [ ./cmake.patch ];  # fix a cmake warning; PR sent to upstream 
+
+  meta = with stdenv.lib; {
+    homepage = "https://www.webtoolkit.eu/wt";
+    description = "C++ library for developing web applications";
+    platforms = platforms.linux ;
+    license = licenses.gpl2;
+    maintainers = [ maintainers.juliendehos ];
+  };
+}
+