aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTimothy Sample <samplet@ngyro.com>2018-08-29 00:25:11 -0400
committerRicardo Wurmus <rekado@elephly.net>2018-10-01 12:12:22 +0200
commitf548cd7254b696249a185972a55ff18dd0616b34 (patch)
treec639edb15a5d858d90947be5e762b95cfb550e7b /gnu
parent1689d39cd264c7794189eea243ed0b147896610f (diff)
downloadguix-f548cd7254b696249a185972a55ff18dd0616b34.tar
guix-f548cd7254b696249a185972a55ff18dd0616b34.tar.gz
gnu: ghc-haddock-api: Update to 2.19.0.1.
* gnu/packages/haskell.scm (ghc-haddock-api): Update to 2.19.0.1. [arguments]: Add a phase that patches the Cabal file to allow newer versions of Cabal and hspec.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/haskell.scm15
1 files changed, 12 insertions, 3 deletions
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 0e061a6b40..bcdb6fb609 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -989,8 +989,7 @@ the ‘haddock’ package.")
(define-public ghc-haddock-api
(package
(name "ghc-haddock-api")
- ;; This is the last version to be supported by Cabal < 2.0
- (version "2.17.4")
+ (version "2.19.0.1")
(source
(origin
(method url-fetch)
@@ -1000,8 +999,18 @@ the ‘haddock’ package.")
".tar.gz"))
(sha256
(base32
- "00fn6pzgg8xjbaw12d76jdqh2dbc5xy7miyz0x6kidvvar7i35ss"))))
+ "0c6i7sljp7myz25d90gyw68a90i5jcrkajkxcciikp2hjirfaas3"))))
(build-system haskell-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'update-constraints
+ (lambda _
+ (substitute* "haddock-api.cabal"
+ (("Cabal \\^>= 2\\.0\\.0")
+ "Cabal ^>= 2.2.0")
+ (("hspec \\^>= 2\\.4\\.4")
+ "hspec >= 2.4.4 && < 2.6")))))))
(inputs
`(("ghc-paths" ,ghc-paths)
("ghc-haddock-library" ,ghc-haddock-library)))