python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libmysqlconnectorcpp / default.nix
blobd8948b08672c86e8c1c96de377c0fc5d1cf90081
1 { lib, stdenv
2 , fetchurl
3 , cmake
4 , boost
5 , openssl
6 , mysql80
7 }:
9 stdenv.mkDerivation rec {
10   pname = "libmysqlconnectorcpp";
11   version = "8.0.31";
13   src = fetchurl {
14     url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
15     hash = "sha256-HSF7yEybmzzDQvl1cwUZ/mlXqVXxnIHqg2a/HfJtELA=";
16   };
18   nativeBuildInputs = [
19     cmake
20   ];
22   buildInputs = [
23     boost
24     openssl
25     mysql80
26   ];
28   cmakeFlags = [
29     # libmysqlclient is shared library
30     "-DMYSQLCLIENT_STATIC_LINKING=false"
31     # still needed for mysql-workbench
32     "-DWITH_JDBC=true"
33   ];
35   meta = {
36     homepage = "https://dev.mysql.com/downloads/connector/cpp/";
37     description = "C++ library for connecting to mysql servers";
38     license = lib.licenses.gpl2Only;
39     platforms = lib.platforms.unix;
40   };