Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 cmake, 6 boost, 7 openssl, 8 mysql80, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "libmysqlconnectorcpp"; 13 version = "9.3.0"; 14 15 src = fetchurl { 16 url = "mirror://mysql/Connector-C++/mysql-connector-c++-${version}-src.tar.gz"; 17 hash = "sha256-Jopvf0pstZ9T3eWWI74VWfkTop7B3oG/D/zL94DRtBY="; 18 }; 19 20 nativeBuildInputs = [ 21 cmake 22 mysql80 23 ]; 24 25 buildInputs = [ 26 boost 27 openssl 28 mysql80 29 ]; 30 31 strictDeps = true; 32 33 cmakeFlags = [ 34 # libmysqlclient is shared library 35 "-DMYSQLCLIENT_STATIC_LINKING=false" 36 # still needed for mysql-workbench 37 "-DWITH_JDBC=true" 38 ]; 39 40 meta = { 41 homepage = "https://dev.mysql.com/downloads/connector/cpp/"; 42 description = "C++ library for connecting to mysql servers"; 43 license = lib.licenses.gpl2Only; 44 platforms = lib.platforms.unix; 45 }; 46}