about summary refs log tree commit diff
path: root/pkgs/development/libraries/poco
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-03-27 01:05:25 +0000
committerOrivej Desh <orivej@gmx.fr>2017-03-27 01:05:25 +0000
commit1ba30ca45bc9bf5484836af3f116d8a17c88dc9c (patch)
tree1fbce2fe9a331f517c054ba32f23868c12976afe /pkgs/development/libraries/poco
parent310bb3e6bb61ed6983c1d88899d3110851f84809 (diff)
poco: init at 1.7.8
Diffstat (limited to 'pkgs/development/libraries/poco')
-rw-r--r--pkgs/development/libraries/poco/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/poco/default.nix b/pkgs/development/libraries/poco/default.nix
new file mode 100644
index 0000000000000..0f971cff64d4e
--- /dev/null
+++ b/pkgs/development/libraries/poco/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchurl, cmake, pkgconfig, zlib, pcre, expat, sqlite, openssl, unixODBC, libmysql }:
+
+stdenv.mkDerivation rec {
+  name = "poco-${version}";
+
+  version = "1.7.8";
+
+  src = fetchurl {
+    url = "https://pocoproject.org/releases/${name}/${name}-all.tar.gz";
+    sha256 = "17y6kvj4qdpb3p1im8n9qfylfh4bd2xsvbpn24jv97x7f146nhjf";
+  };
+
+  nativeBuildInputs = [ cmake pkgconfig ];
+
+  buildInputs = [ zlib pcre expat sqlite openssl unixODBC libmysql ];
+
+  cmakeFlags = [
+    "-DMYSQL_INCLUDE_DIR=${libmysql.dev}/include/mysql"
+    "-DPOCO_UNBUNDLED=ON"
+  ];
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    homepage = https://pocoproject.org/;
+    description = "Cross-platform C++ libraries with a network/internet focus";
+    license = licenses.boost;
+    maintainers = with maintainers; [ orivej ];
+    platforms = platforms.linux;
+  };
+}