2015-01-01 01:24:26 +00:00
|
|
|
{ stdenv, fetchurl, cmake, boost, mysql }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libmysqlconnectorcpp-${version}";
|
2018-03-09 06:36:32 +00:00
|
|
|
version = "1.1.9";
|
2015-01-01 01:24:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}.tar.gz";
|
2018-03-09 06:36:32 +00:00
|
|
|
sha256 = "1r6j17sy5816a2ld759iis2k6igc2w9p70y4nw9w3rd4d5x88c9y";
|
2015-01-01 01:24:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake boost mysql ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DMYSQL_LIB_DIR=${mysql}/lib" ];
|
|
|
|
|
|
|
|
meta = {
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://dev.mysql.com/downloads/connector/cpp/;
|
2015-01-01 01:24:26 +00:00
|
|
|
description = "C++ library for connecting to mysql servers.";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|