rekado pushed a commit to branch wip-haskell
in repository guix.
commit 2475c008382775e49c46e9824e90ac8858036059
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Thu Aug 13 13:51:35 2020 +0200
gnu: ghc-pandoc: Fix tests.
* gnu/packages/haskell-xyz.scm (ghc-pandoc)[arguments]: Add build phase
"find-library".
---
gnu/packages/haskell-xyz.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 3cf6a9f..ae64822 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -8762,6 +8762,17 @@ code. It was designed for use in @code{Pandoc}.")
(base32
"0dpjrr40h54cljzhvixyym07z792a9izg6b9dmqpjlgcg4rj0xx8"))))
(build-system haskell-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'find-library
+ (lambda _
+ (substitute* "test/Tests/Command.hs"
+ (("= dynlibEnv")
+ (format #f "= [(\"LD_LIBRARY_PATH\" , \"~a/dist/build\")]"
+ (getcwd))))
+ #t)))))
+ (outputs '("out" "static" "doc"))
(inputs
`(("ghc-aeson" ,ghc-aeson)
("ghc-aeson-pretty" ,ghc-aeson-pretty)