gnu: ghc-regex: Fix build.

* gnu/packages/haskell.scm (ghc-regex)[arguments]: Add build phase to relax
version checks.
This commit is contained in:
Ricardo Wurmus 2018-10-02 18:28:50 +02:00 committed by Ricardo Wurmus
parent a45c64701b
commit 279c97dba8
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -3003,6 +3003,17 @@ (define-public ghc-regex
(base32
"1sjkpkgv4phy5b5v2lr89x4vx4dh44pj0sbvlsp6n86w9v6v4jwb"))))
(build-system haskell-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'relax-dependencies
(lambda _
(substitute* "regex.cabal"
(("base-compat.*>=.*0.6.*")
"base-compat >= 0.6\n")
(("template-haskell.*>=.*2.7.*")
"template-haskell >= 2.7\n"))
#t)))))
(inputs
`(("ghc-base-compat" ,ghc-base-compat)
("ghc-hashable" ,ghc-hashable)