2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2020-03-11 20:39:12 +00:00
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, boost
|
|
|
|
, openssl
|
|
|
|
, mysql80
|
|
|
|
}:
|
2015-01-01 01:24:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libmysqlconnectorcpp";
|
2021-02-11 06:28:33 +00:00
|
|
|
version = "8.0.23";
|
2015-01-01 01:24:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-03-11 20:39:12 +00:00
|
|
|
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
|
2021-02-11 06:28:33 +00:00
|
|
|
sha256 = "sha256-mvBklaaggP7WLacJePHLDGbwWO3V6p7ak0WmS/jsaI8=";
|
2015-01-01 01:24:26 +00:00
|
|
|
};
|
|
|
|
|
2020-03-11 20:39:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
2015-01-01 01:24:26 +00:00
|
|
|
|
2020-03-11 20:39:12 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
openssl
|
|
|
|
mysql80
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
# libmysqlclient is shared library
|
|
|
|
"-DMYSQLCLIENT_STATIC_LINKING=false"
|
|
|
|
# still needed for mysql-workbench
|
|
|
|
"-DWITH_JDBC=true"
|
|
|
|
];
|
2015-01-01 01:24:26 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-03-11 20:39:12 +00:00
|
|
|
homepage = "https://dev.mysql.com/downloads/connector/cpp/";
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "C++ library for connecting to mysql servers";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.unix;
|
2015-01-01 01:24:26 +00:00
|
|
|
};
|
|
|
|
}
|