2019-09-22 09:38:09 +02:00
|
|
|
{ stdenv, fetchurl, cmake, sqlite, libmysqlclient, postgresql, unixODBC }:
|
2016-08-24 10:47:56 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "cppdb";
|
2016-08-24 10:47:56 +02:00
|
|
|
version = "0.3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/cppcms/${pname}-${version}.tar.bz2";
|
2016-08-24 10:47:56 +02:00
|
|
|
sha256 = "0blr1casmxickic84dxzfmn3lm7wrsl4aa2abvpq93rdfddfy3nn";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-09-22 09:38:09 +02:00
|
|
|
buildInputs = [ cmake sqlite libmysqlclient postgresql unixODBC ];
|
2016-08-24 10:47:56 +02:00
|
|
|
|
|
|
|
cmakeFlags = [ "--no-warn-unused-cli" ];
|
2019-09-22 09:38:09 +02:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${libmysqlclient}/include/mysql" "-L${libmysqlclient}/lib/mysql" ];
|
2016-08-24 10:47:56 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://cppcms.com/sql/cppdb/;
|
2016-08-24 10:47:56 +02:00
|
|
|
description = "C++ Connectivity library that supports MySQL, PostgreSQL, Sqlite3 databases and generic ODBC drivers";
|
|
|
|
platforms = platforms.linux ;
|
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = [ maintainers.juliendehos ];
|
|
|
|
};
|
|
|
|
}
|