2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, sqlite, libmysqlclient, postgresql, unixODBC }:
|
2016-08-24 08:47:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "cppdb";
|
2016-08-24 08:47:56 +00:00
|
|
|
version = "0.3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/cppcms/${pname}-${version}.tar.bz2";
|
2016-08-24 08:47:56 +00:00
|
|
|
sha256 = "0blr1casmxickic84dxzfmn3lm7wrsl4aa2abvpq93rdfddfy3nn";
|
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ sqlite libmysqlclient postgresql unixODBC ];
|
2016-08-24 08:47:56 +00:00
|
|
|
|
|
|
|
cmakeFlags = [ "--no-warn-unused-cli" ];
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-I${libmysqlclient}/include/mysql -L${libmysqlclient}/lib/mysql";
|
2016-08-24 08:47:56 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +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 ];
|
|
|
|
};
|
|
|
|
}
|