Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / cppdb / default.nix
blobb71a6c07303101170b4030412db25da79c7abee0
1 { lib, stdenv, fetchurl, cmake, sqlite, libmysqlclient, postgresql, unixODBC }:
3 stdenv.mkDerivation rec {
4   pname = "cppdb";
5   version = "0.3.1";
7   src = fetchurl {
8       url = "mirror://sourceforge/cppcms/${pname}-${version}.tar.bz2";
9       sha256 = "0blr1casmxickic84dxzfmn3lm7wrsl4aa2abvpq93rdfddfy3nn";
10   };
12   nativeBuildInputs = [ cmake ];
13   buildInputs = [ sqlite libmysqlclient postgresql unixODBC ];
15   cmakeFlags = [ "--no-warn-unused-cli" ];
16   env.NIX_CFLAGS_COMPILE = "-I${libmysqlclient}/include/mysql -L${libmysqlclient}/lib/mysql";
18   meta = with lib; {
19     homepage = "http://cppcms.com/sql/cppdb/";
20     description = "C++ Connectivity library that supports MySQL, PostgreSQL, Sqlite3 databases and generic ODBC drivers";
21     platforms = platforms.linux ;
22     license = licenses.boost;
23     maintainers = [ maintainers.juliendehos ];
24   };