diff options
author | Marius Bakke <mbakke@fastmail.com> | 2020-03-09 21:45:32 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2020-03-09 21:45:32 +0100 |
commit | b3b5714fa72bf661003f27fbccba5697f5810115 (patch) | |
tree | c4eedb0b21200ba438cd1d0d67cd79e6b63926f7 /gnu/packages/databases.scm | |
parent | b6f946f039afad6cbc7027d52685072f7fbb8d35 (diff) | |
parent | 51f30d4fdf197b1dad5ddb1405611fbaee55d1f2 (diff) | |
download | patches-b3b5714fa72bf661003f27fbccba5697f5810115.tar patches-b3b5714fa72bf661003f27fbccba5697f5810115.tar.gz |
Merge branch 'master' into staging
Diffstat (limited to 'gnu/packages/databases.scm')
-rw-r--r-- | gnu/packages/databases.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 98f80db89f..59f9c2b173 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -3373,3 +3373,38 @@ The drivers officially supported by @code{libdbi} are: @end itemize") (home-page "http://libdbi-drivers.sourceforge.net/") (license license:lgpl2.1+))) + +(define-public soci + (package + (name "soci") + (version "4.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/SOCI/soci/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "06faswdxd2frqr9xnx6bxc7zwarlzsbdi3bqpz7kwdxsjvq41rnb")))) + (build-system cmake-build-system) + (inputs + `(("postgresql" ,postgresql) + ("sqlite" ,sqlite) + ("odbc" ,unixodbc) + ("boost" ,boost) + ("mysql" ,mysql))) + (arguments + `(#:tests? #f ; Tests may require running database management systems. + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-lib-path + (lambda _ + (substitute* "CMakeLists.txt" + (("set\\(SOCI_LIBDIR \"lib64\"\\)") ""))))))) + (synopsis "C++ Database Access Library") + (description + "SOCI is an abstraction layer for several database backends, including +PostreSQL, SQLite, ODBC and MySQL.") + (home-page "http://soci.sourceforge.net/") + (license license:boost1.0))) |