3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: ghc-fgl-arbitrary: Replace "--allow-newer" flags.

* gnu/packages/haskell.scm (ghc-fgl-arbitrary)[arguments]: Replace
"--allow-newer" configure flags with a phase that patches the Cabal file.
This commit is contained in:
Timothy Sample 2018-09-03 22:40:43 -04:00 committed by Ricardo Wurmus
parent f9a97fb553
commit 11afd13d70
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -7316,8 +7316,15 @@ supported. A module of colour names (\"Data.Colour.Names\") is provided.")
"0ln1szgfy8fa78l3issq4fx3aqnnd54w3cb4wssrfi48vd5rkfjm"))))
(build-system haskell-build-system)
(arguments
`(#:configure-flags (list "--allow-newer=QuickCheck"
"--allow-newer=hspec")))
`(#:phases
(modify-phases %standard-phases
(add-before 'configure 'update-constraints
(lambda _
(substitute* "fgl-arbitrary.cabal"
(("QuickCheck >= 2\\.3 && < 2\\.10")
"QuickCheck >= 2.3 && < 2.12")
(("hspec >= 2\\.1 && < 2\\.5")
"hspec >= 2.1 && < 2.6")))))))
(inputs
`(("ghc-fgl" ,ghc-fgl)
("ghc-quickcheck" ,ghc-quickcheck)