8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
26 lines
863 B
Nix
26 lines
863 B
Nix
{ stdenv, fetchurl, cmake, sqlite, libmysqlclient, postgresql, unixODBC }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cppdb";
|
|
version = "0.3.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/cppcms/${pname}-${version}.tar.bz2";
|
|
sha256 = "0blr1casmxickic84dxzfmn3lm7wrsl4aa2abvpq93rdfddfy3nn";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = [ cmake sqlite libmysqlclient postgresql unixODBC ];
|
|
|
|
cmakeFlags = [ "--no-warn-unused-cli" ];
|
|
NIX_CFLAGS_COMPILE = "-I${libmysqlclient}/include/mysql -L${libmysqlclient}/lib/mysql";
|
|
|
|
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 ];
|
|
};
|
|
}
|