guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

33/272: gnu: ghc-zlib: Relax test framework dependency constraints.


From: Ricardo Wurmus
Subject: 33/272: gnu: ghc-zlib: Relax test framework dependency constraints.
Date: Mon, 1 Oct 2018 06:13:08 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit e09ef4fccaddfeb74ecab8cc7ab9a24be9b019f9
Author: Timothy Sample <address@hidden>
Date:   Thu Sep 6 14:08:08 2018 -0400

    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.
---
 gnu/packages/haskell.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 696f421..9ed7554 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -2044,7 +2044,15 @@ literals.")
         (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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]