diff options
Diffstat (limited to 'gnu/packages/libffi.scm')
| -rw-r--r-- | gnu/packages/libffi.scm | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm index f87719c7f2d..5f5d45a7cdc 100644 --- a/gnu/packages/libffi.scm +++ b/gnu/packages/libffi.scm | |||
| @@ -48,7 +48,8 @@ | |||
| 48 | #:use-module ((guix build-system python) #:select (pypi-uri | 48 | #:use-module ((guix build-system python) #:select (pypi-uri |
| 49 | package-with-python2 | 49 | package-with-python2 |
| 50 | python-build-system)) | 50 | python-build-system)) |
| 51 | #:use-module (guix build-system ruby)) | 51 | #:use-module (guix build-system ruby) |
| 52 | #:use-module (guix build-system trivial)) | ||
| 52 | 53 | ||
| 53 | (define-public libffi | 54 | (define-public libffi |
| 54 | (package | 55 | (package |
| @@ -88,6 +89,21 @@ conversions for values passed between the two languages.") | |||
| 88 | ;; See <https://github.com/atgreen/libffi/blob/master/LICENSE>. | 89 | ;; See <https://github.com/atgreen/libffi/blob/master/LICENSE>. |
| 89 | (license expat))) | 90 | (license expat))) |
| 90 | 91 | ||
| 92 | (define-public libffi-for-graal-truffle | ||
| 93 | (package | ||
| 94 | (inherit libffi) | ||
| 95 | (name "libffi-for-graal-truffle") | ||
| 96 | (version "3.4.8") | ||
| 97 | (source (origin | ||
| 98 | (method url-fetch) | ||
| 99 | (uri | ||
| 100 | (string-append "https://github.com/libffi/libffi/releases" | ||
| 101 | "/download/v" version "/libffi-" version ".tar.gz")) | ||
| 102 | (file-name "libffi-src.tar.gz") | ||
| 103 | (sha256 | ||
| 104 | (base32 | ||
| 105 | "16qias9rs3g3lg3zs9zx76hqzry7pkzc8lhjxnqargwqi2hl565w")))))) | ||
| 106 | |||
| 91 | ;; Provide a variant without static trampolines as some packages | 107 | ;; Provide a variant without static trampolines as some packages |
| 92 | ;; (particularly GHC < 9) cannot handle them. See | 108 | ;; (particularly GHC < 9) cannot handle them. See |
| 93 | ;; <https://github.com/libffi/libffi/pull/647> for a discussion. | 109 | ;; <https://github.com/libffi/libffi/pull/647> for a discussion. |
