Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libmysqlconnectorcpp / default.nix
blob8c4e32b232c95d62df7f00e6255cbe48215aee70
1 { lib, stdenv
2 , fetchurl
3 , cmake
4 , boost
5 , openssl
6 , mysql80
7 }:
9 stdenv.mkDerivation rec {
10   pname = "libmysqlconnectorcpp";
11   version = "8.1.0";
13   src = fetchurl {
14     url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz";
15     hash = "sha256-LuPH0NAxzlgd7u10fZVh0UAXI3NZK+1dBjCnkOYFPcE=";
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   };