gnu: idris: Enable FFI and GMP support.

* gnu/packages/idris.scm (idris)[inputs]: Add ghc-libffi.
[arguments]: Add "-fFFI" and "-fGMP" to #:configure-flags.
This commit is contained in:
Eric Bavier 2019-04-11 19:28:45 -05:00
parent fb038f32ae
commit e16bc71015
No known key found for this signature in database
GPG Key ID: FD73CAC719D32566
1 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#:use-module (gnu packages haskell) #:use-module (gnu packages haskell)
#:use-module (gnu packages haskell-check) #:use-module (gnu packages haskell-check)
#:use-module (gnu packages haskell-web) #:use-module (gnu packages haskell-web)
#:use-module (gnu packages libffi)
#:use-module (gnu packages multiprecision) #:use-module (gnu packages multiprecision)
#:use-module (gnu packages ncurses) #:use-module (gnu packages ncurses)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
@ -61,6 +62,7 @@
("ghc-fingertree" ,ghc-fingertree) ("ghc-fingertree" ,ghc-fingertree)
("ghc-fsnotify" ,ghc-fsnotify) ("ghc-fsnotify" ,ghc-fsnotify)
("ghc-ieee754" ,ghc-ieee754) ("ghc-ieee754" ,ghc-ieee754)
("ghc-libffi" ,ghc-libffi)
("ghc-megaparsec" ,ghc-megaparsec) ("ghc-megaparsec" ,ghc-megaparsec)
("ghc-network" ,ghc-network) ("ghc-network" ,ghc-network)
("ghc-optparse-applicative" ,ghc-optparse-applicative) ("ghc-optparse-applicative" ,ghc-optparse-applicative)
@ -79,7 +81,8 @@
`(#:tests? #f ; FIXME: Test suite doesn't run in a sandbox. `(#:tests? #f ; FIXME: Test suite doesn't run in a sandbox.
#:configure-flags #:configure-flags
(list (string-append "--datasubdir=" (list (string-append "--datasubdir="
(assoc-ref %outputs "out") "/lib/idris")) (assoc-ref %outputs "out") "/lib/idris")
"-fFFI" "-fGMP")
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'configure 'set-cc-command (add-before 'configure 'set-cc-command