2017-12-27 15:15:33 +00:00
|
|
|
{ stdenv, fetchurl, cmake, sqlite, mysql, postgresql, unixODBC }:
|
2016-08-24 08:47:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-05-28 12:59:57 +00:00
|
|
|
name = "cppdb-${version}";
|
2016-08-24 08:47:56 +00:00
|
|
|
version = "0.3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-05-28 12:59:57 +00:00
|
|
|
url = "mirror://sourceforge/cppcms/${name}.tar.bz2";
|
2016-08-24 08:47:56 +00:00
|
|
|
sha256 = "0blr1casmxickic84dxzfmn3lm7wrsl4aa2abvpq93rdfddfy3nn";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-12-27 15:15:33 +00:00
|
|
|
buildInputs = [ cmake sqlite mysql.connector-c postgresql unixODBC ];
|
2016-08-24 08:47:56 +00:00
|
|
|
|
|
|
|
cmakeFlags = [ "--no-warn-unused-cli" ];
|
2017-12-27 15:15:33 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${mysql.connector-c}/include/mysql" "-L${mysql.connector-c}/lib/mysql" ];
|
2016-08-24 08:47:56 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://cppcms.com/sql/cppdb/;
|
2016-08-24 08:47:56 +00:00
|
|
|
description = "C++ Connectivity library that supports MySQL, PostgreSQL, Sqlite3 databases and generic ODBC drivers";
|
|
|
|
platforms = platforms.linux ;
|
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = [ maintainers.juliendehos ];
|
|
|
|
};
|
|
|
|
}
|