gnu: Add sbcl-cffi-grovel.

* gnu/packages/lisp.scm (sbcl-cffi-grovel): New variable.
This commit is contained in:
Pierre Neidhardt 2018-10-02 19:59:19 +02:00
parent 9eea4e0302
commit d3142f2ffb
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F
1 changed files with 20 additions and 0 deletions

View File

@ -2994,3 +2994,23 @@ package.")
("cffi-grovel" ,sbcl-cffi-grovel)
("trivial-features" ,sbcl-trivial-features)
("libffi" ,libffi)))))
(define-public sbcl-cffi-grovel
(package
(inherit sbcl-cffi-toolchain)
(name "sbcl-cffi-grovel")
(inputs
`(("libffi" ,libffi)
("cffi" ,sbcl-cffi-bootstrap)
("cffi-toolchain" ,sbcl-cffi-toolchain)
("alexandria" ,sbcl-alexandria)))
(arguments
(substitute-keyword-arguments (package-arguments sbcl-cffi-toolchain)
((#:phases phases)
`(modify-phases ,phases
(add-after 'build 'install-headers
(lambda* (#:key outputs #:allow-other-keys)
(install-file "grovel/common.h"
(string-append
(assoc-ref outputs "out")
"/include/grovel"))))))))))