gnu: Add sbcl-clsql-postgresql.

* gnu/packages/lisp-xyz.scm (sbcl-clsql-postgresql): New variable.
This commit is contained in:
Guillaume Le Vaillant 2020-02-28 19:15:36 +01:00
parent 5ad8d7aa12
commit cd53df62c9
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -11107,3 +11107,24 @@ (define-public sbcl-clsql-sqlite3
"/lib/libsqlite3")))
#t))))))
(synopsis "SQLite3 driver for Common Lisp SQL interface library")))
(define-public sbcl-clsql-postgresql
(package
(inherit sbcl-clsql)
(name "sbcl-clsql-postgresql")
(inputs
`(("clsql" ,sbcl-clsql)
("clsql-uffi" ,sbcl-clsql-uffi)
("postgresql" ,postgresql)))
(arguments
(substitute-keyword-arguments (package-arguments sbcl-clsql)
((#:phases phases '%standard-phases)
`(modify-phases ,phases
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "db-postgresql/postgresql-loader.lisp"
(("libpq")
(string-append (assoc-ref inputs "postgresql")
"/lib/libpq")))
#t))))))
(synopsis "PostgreSQL driver for Common Lisp SQL interface library")))