Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MySQL Connector C++, a mysql server client library.
- Loading branch information
1 parent
930c682
commit 07c6d61
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
pkgs/development/libraries/libmysqlconnectorcpp/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ stdenv, fetchurl, cmake, boost, mysql }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "libmysqlconnectorcpp-${version}"; | ||
version = "1.1.7"; | ||
|
||
src = fetchurl { | ||
url = "http://cdn.mysql.com/Downloads/Connector-C++/mysql-connector-c++-${version}.tar.gz"; | ||
sha256 = "0qy7kxz8h1zswr50ysyl2cc9gy0ip2j7ikl714m7lq3gsay3ydav"; | ||
}; | ||
|
||
buildInputs = [ cmake boost mysql ]; | ||
|
||
cmakeFlags = [ "-DMYSQL_LIB_DIR=${mysql}/lib" ]; | ||
|
||
meta = { | ||
homepage = http://dev.mysql.com/downloads/connector/cpp/; | ||
description = "C++ library for connecting to mysql servers."; | ||
license = stdenv.lib.licenses.gpl2; | ||
platforms = stdenv.lib.platforms.unix; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters