gnu: ghc-zlib: Relax test framework dependency constraints.

* gnu/packages/haskell.scm (ghc-zlib)[arguments]: Remove "--allow-newer"
configure flag and add a phase that removes dependency version constraints
from some of the test frameworks.
This commit is contained in:
Timothy Sample 2018-09-06 14:08:08 -04:00 committed by Ricardo Wurmus
parent 6c76f51f96
commit e09ef4fcca
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -2044,7 +2044,15 @@ (define-public ghc-zlib
(base32
"1vbzf0awb6zb456xf48za1kl22018646cfzq4frvxgb9ay97vk0d"))))
(build-system haskell-build-system)
(arguments `(#:configure-flags (list "--allow-newer=tasty")))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'configure 'strip-test-framework-constraints
(lambda _
(substitute* "zlib.cabal"
(("tasty >= 0\\.8 && < 0\\.12") "tasty")
(("tasty-hunit >= 0\\.8 && < 0\\.10") "tasty-hunit")
(("tasty-quickcheck == 0\\.8\\.\\*") "tasty-quickcheck")))))))
(inputs `(("zlib" ,zlib)))
(native-inputs
`(("ghc-quickcheck" ,ghc-quickcheck)