Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv 2, fetchurl 3, cmake 4, boost 5, openssl 6, mysql80 7}: 8 9stdenv.mkDerivation rec { 10 pname = "libmysqlconnectorcpp"; 11 version = "8.0.33"; 12 13 src = fetchurl { 14 url = "https://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}-src.tar.gz"; 15 hash = "sha256-Fgz2iB+96b1GzRGq8Skwtna8bidYmsXHuknBlrl+BTs="; 16 }; 17 18 nativeBuildInputs = [ 19 cmake 20 ]; 21 22 buildInputs = [ 23 boost 24 openssl 25 mysql80 26 ]; 27 28 cmakeFlags = [ 29 # libmysqlclient is shared library 30 "-DMYSQLCLIENT_STATIC_LINKING=false" 31 # still needed for mysql-workbench 32 "-DWITH_JDBC=true" 33 ]; 34 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 }; 41}