depot/third_party/nixpkgs/pkgs/development/libraries/libmysqlconnectorcpp/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

41 lines
823 B
Nix

{ lib, stdenv
, fetchurl
, cmake
, boost
, openssl
, mysql80
}:
stdenv.mkDerivation rec {
pname = "libmysqlconnectorcpp";
version = "8.0.21";
src = fetchurl {
url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
sha256 = "08z40419aip26z6ss30g59mvnddb8dfam82l556jyj3gxs0irqbh";
};
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 = lib.licenses.gpl2;
platforms = lib.platforms.unix;
};
}