1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 02:46:28 +00:00
nixpkgs/pkgs/development/libraries/cppdb/default.nix

27 lines
865 B
Nix
Raw Normal View History

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