Subject: [PATCH 08/53] gnu: emacs-flycheck-haskell: Skip tests.

From: Nicolas Graves <[email-masked]>
Date: Thu, 8 May 2025 14:50:10 +0200

* gnu/packages/emacs-xyz.scm (emacs-flycheck-haskell):
  [arguments]<test-command>: Set it.
  <tests?>: Skip them, add comment.
  <include>: Use gexps.
  [native-inputs]: Add ghc.
---
 gnu/packages/emacs-xyz.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 9f75412f90..6dd82ab82e 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -217,6 +217,7 @@ (define-module (gnu packages emacs-xyz)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages graphviz)
+  #:use-module (gnu packages haskell)
   #:use-module (gnu packages haskell-apps)
   #:use-module (gnu packages ibus)
   #:use-module (gnu packages idris)
@@ -35137,10 +35138,14 @@ (define-public emacs-flycheck-haskell
           (base32
            "10pgsbagq6qj4mshq5sypv0q0khck92b30sc793b4g1pfpsxvgjn"))))
       (build-system emacs-build-system)
+      (arguments
+       (list #:include #~(list "\\.el$" "\\.hs$")
+             #:test-command #~(list "make" "test" "CASK=")
+             #:tests? #f))  ; Several tests are failing on the haskell side.
       (propagated-inputs
        (list emacs-dash emacs-flycheck emacs-haskell-mode emacs-let-alist))
-      (arguments
-       `(#:include '("\\.el$" "\\.hs$")))
+      (native-inputs
+       (list ghc))
       (home-page "https://github.com/flycheck/flycheck-haskell")
       (synopsis "Flycheck for Haskell")
       (description "This package configures syntax-checking for Haskell
-- 
2.49.0