gnu: Add cl-mssql.

* gnu/packages/lisp-xyz.scm (cl-mssql, ecl-mssql, sbcl-mssql): New variables.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
This commit is contained in:
Sharlatan Hellseher 2021-01-13 21:43:28 +00:00 committed by Guillaume Le Vaillant
parent 0c0a2831b0
commit 88eb5370ec
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -1940,6 +1940,51 @@ (define-public ecl-mgl-pax
;; TODO: Find why the tests fail on ECL. ;; TODO: Find why the tests fail on ECL.
((#:tests? _ #f) #f)))))) ((#:tests? _ #f) #f))))))
(define-public sbcl-mssql
(let ((commit "045602a19a32254108f2b75871049293f49731eb")
(revision "1"))
(package
(name "sbcl-mssql")
(version (git-version "0.0.3" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/archimag/cl-mssql")
(commit commit)))
(file-name (git-file-name "cl-mssql" version))
(sha256
(base32 "09i50adppgc1ybm3ka9vbindhwa2x29f9n3n0jkrryymdhb8zknm"))))
(build-system asdf-build-system/sbcl)
(inputs
`(("cffi" ,sbcl-cffi)
("freetds" ,freetds)
("garbage-pools" ,sbcl-garbage-pools)
("iterate" ,sbcl-iterate)
("parse-number" ,sbcl-parse-number)))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/mssql.lisp"
(("libsybdb" all)
(string-append (assoc-ref inputs "freetds") "/lib/" all)))
#t)))))
(home-page "https://github.com/archimag/cl-mssql")
(synopsis "Common Lisp library to interact with MS SQL Server databases")
(description
"@code{cl-mssql} provides an interface to connect to Microsoft SQL
server. It uses the @code{libsybdb} foreign library provided by the FreeTDS
project.")
(license license:llgpl))))
(define-public ecl-mssql
(sbcl-package->ecl-package sbcl-mssql))
(define-public cl-mssql
(sbcl-package->cl-source-package sbcl-mssql))
(define-public sbcl-lisp-unit (define-public sbcl-lisp-unit
(let ((commit "89653a232626b67400bf9a941f9b367da38d3815")) (let ((commit "89653a232626b67400bf9a941f9b367da38d3815"))
(package (package