8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
41 lines
825 B
Nix
41 lines
825 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, cmake
|
|
, boost
|
|
, openssl
|
|
, mysql80
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libmysqlconnectorcpp";
|
|
version = "8.0.19";
|
|
|
|
src = fetchurl {
|
|
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
|
|
sha256 = "fDvXTOZKkwDn1IG3aziK2VAXpSSAxpi3VVea7GLUoh4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
openssl
|
|
mysql80
|
|
];
|
|
|
|
cmakeFlags = [
|
|
# libmysqlclient is shared library
|
|
"-DMYSQLCLIENT_STATIC_LINKING=false"
|
|
# still needed for mysql-workbench
|
|
"-DWITH_JDBC=true"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://dev.mysql.com/downloads/connector/cpp/";
|
|
description = "C++ library for connecting to mysql servers.";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|