gnu: ghc-edit-distance: Replace "--allow-newer" flag.

* gnu/packages/haskell.scm (ghc-edit-distance)[arguments]: Replace
"--allow-newer" configure flag with a phase that patches the Cabal file.
master
Timothy Sample 2018-09-03 23:35:30 -04:00 committed by Ricardo Wurmus
parent 5f4327df7f
commit d340ee858f
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 7 additions and 1 deletions

View File

@ -6208,7 +6208,13 @@ representations of current time.")
(base32 "0jkca97zyv23yyilp3jydcrzxqhyk27swhzh82llvban5zp8b21y"))))
(build-system haskell-build-system)
(arguments
`(#:configure-flags (list "--allow-newer=QuickCheck")))
`(#:phases
(modify-phases %standard-phases
(add-before 'configure 'update-constraints
(lambda _
(substitute* "edit-distance.cabal"
(("QuickCheck >= 2\\.4 && <2\\.9")
"QuickCheck >= 2.4 && < 2.12")))))))
(inputs
`(("ghc-random" ,ghc-random)
("ghc-test-framework" ,ghc-test-framework)