gnu: idris: Fix Cabal dependency constraints.

* gnu/packages/idris.scm (idris): Add a phase that updates the Cabal
file to allow for newer versions of 'ansi-terminal'.
This commit is contained in:
Timothy Sample 2019-11-16 09:42:03 -05:00
parent 8e41d38afd
commit 3594b6699d
No known key found for this signature in database
GPG key ID: 2AC6A5EC1C357C59

View file

@ -90,6 +90,11 @@ (define-public idris
"-fFFI" "-fGMP")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'update-constraints
(lambda _
(substitute* "idris.cabal"
(("ansi-terminal < 0\\.9") "ansi-terminal < 0.10"))
#t))
(add-before 'configure 'set-cc-command
(lambda _
(setenv "CC" "gcc")