guix_mirror_bot pushed a commit to branch haskell-team
in repository guix.

commit 37809c097fa6f74b3ff9193ce25542210347a14b
Author: Saku Laesvuori <[email protected]>
AuthorDate: Sat Oct 18 16:34:35 2025 +0300

    gnu: ghc-pgp-wordlist: Update to version 0.1.0.3-1f0cfd90d62
    
    The latest release no longer builds, but it is fixed upstream. In fact
    the new version only adds the fix compared to the previous one.
    
    * gnu/packages/haskell-xyz.scm
    (ghc-pgp-wordlist): Update to version 0.1.0.3-1f0cfd90d62.
    [arguments]: Run doctests with GHC_PACKAGE_PATH.
    
    Change-Id: I58256b32ea749240db91e84beac59aae37f6fd2c
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/haskell-xyz.scm | 29 +++++++++++++++++++++++++----
 1 file changed, 25 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 2b74a2923d..c77d1d705b 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -9489,16 +9489,37 @@ libraries.")
 (define-public ghc-pgp-wordlist
   (package
     (name "ghc-pgp-wordlist")
-    (version "0.1.0.3")
+    ;; The 0.1.0.3 release no longer builds and the maintainer
+    ;; has not made a new release with the fix
+    (version (git-version "0.1.0.3" "1"
+                          "1f0cfd90d62179952cbfd59c3405283a1d364272"))
     (source
      (origin
-       (method url-fetch)
-       (uri (hackage-uri "pgp-wordlist" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/quchen/pgp-wordlist";)
+              (commit "1f0cfd90d62179952cbfd59c3405283a1d364272")))
        (sha256
         (base32
-         "15g6qh0fb7kjj3l0w8cama7cxgnhnhybw760md9yy7cqfq15cfzg"))))
+         "1n6wf85302hv19gy4h0gpzn5cscnb10mw9fyn85yiaxasn1508aq"))))
     (build-system haskell-build-system)
     (properties '((upstream-name . "pgp-wordlist")))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (if tests?
+                (let* ((tmpdir (or (getenv "TMP")
+                                   "/tmp"))
+                       (dependency-package-db
+                        (string-append tmpdir "/package.conf.d")))
+                  (invoke "runhaskell" "Setup.hs" "test" "tasty")
+                  (setenv "GHC_PACKAGE_PATH" dependency-package-db)
+                  (invoke "./dist/build/doctest/doctest")
+                  (unsetenv "GHC_PACKAGE_PATH"))
+                (format #t "Testsuite not run.%~")))))))
     (inputs
      (list ghc-vector))
     (native-inputs

Reply via email to