Patchwork [4/5] gnu: Add libpqxx.

login
register
mail settings
Submitter Jan Nieuwenhuizen
Date Sept. 13, 2016, 4:59 p.m.
Message ID <20160913165941.2834-5-janneke@gnu.org>
Download mbox | patch
Permalink /patch/15591/
State New
Headers show

Comments

Jan Nieuwenhuizen - Sept. 13, 2016, 4:59 p.m.
* gnu/packages/ci.scm (libpqxx): New variable.
---
 gnu/packages/ci.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Patch

diff --git a/gnu/packages/ci.scm b/gnu/packages/ci.scm
index ec51bb3..555c255 100644
--- a/gnu/packages/ci.scm
+++ b/gnu/packages/ci.scm
@@ -33,6 +33,7 @@ 
   #:use-module (gnu packages package-management)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages python)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages web)
@@ -63,6 +64,32 @@ 
 collector daemon in use at Etsy.com.")
    (license (package-license perl))))
 
+(define-public libpqxx
+  (package
+    (name "libpqxx")
+    (version "4.0.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://pqxx.org/download/software/libpqxx/"
+                    name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0f6wxspp6rx12fkasanb0z2g2gc8dhcfwnxagx8wwqbpg6ifsz09"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("python" ,python-2)))
+    (inputs `(("postgresql" ,postgresql)))
+    (arguments
+     `(#:tests? #f)) ; # FAIL:  1
+    (synopsis "C++ connector for PostgreSQL")
+    (description
+     "Libpqxx is a C++ library to enable user programs to communicate with the
+PostgreSQL database back-end.  The database back-end can be local or it may be
+on another machine, accessed via TCP/IP.")
+    (home-page "http://pqxx.org/")
+    (license l:bsd-3)))
+
 (define-public hydra
   (let ((commit "4c0e3e47034545ad3e9e86dd069138bcebb8ccee"))
     (package