From c35ce4714301ed24dbd94202a70e1e9343a90974 Mon Sep 17 00:00:00 2001 From: Julien Dehos Date: Wed, 24 Aug 2016 10:47:56 +0200 Subject: [PATCH] cppdb: init at 0.3.1 --- pkgs/development/libraries/cppdb/default.nix | 26 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/libraries/cppdb/default.nix diff --git a/pkgs/development/libraries/cppdb/default.nix b/pkgs/development/libraries/cppdb/default.nix new file mode 100644 index 000000000000..68fcb2ba25b7 --- /dev/null +++ b/pkgs/development/libraries/cppdb/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, cmake, sqlite, libmysql, postgresql, unixODBC }: + +stdenv.mkDerivation rec { + name = "cppdb"; + version = "0.3.1"; + + src = fetchurl { + url = "mirror://sourceforge/cppcms/${name}-${version}.tar.bz2"; + sha256 = "0blr1casmxickic84dxzfmn3lm7wrsl4aa2abvpq93rdfddfy3nn"; + }; + + enableParallelBuilding = true; + + buildInputs = [ cmake sqlite libmysql postgresql unixODBC ]; + + cmakeFlags = [ "--no-warn-unused-cli" ]; + + meta = with stdenv.lib; { + homepage = "http://cppcms.com/sql/cppdb/"; + description = "C++ Connectivity library that supports MySQL, PostgreSQL, Sqlite3 databases and generic ODBC drivers"; + platforms = platforms.linux ; + license = licenses.boost; + maintainers = [ maintainers.juliendehos ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8c68b35a56f0..bb3a71601e8d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7074,6 +7074,8 @@ in ctpl = callPackage ../development/libraries/ctpl { }; + cppdb = callPackage ../development/libraries/cppdb { }; + cpp-netlib = callPackage ../development/libraries/cpp-netlib { }; cppunit = callPackage ../development/libraries/cppunit { };