Subject: [PATCH 5/8] gnu: Add ghc-gsasl.

From: Stephen Paul Weber <[email-masked]>
Date: Sun, 26 Sep 2021 21:10:30 -0500

* gnu/packages/haskell-xyz.scm (ghc-gsasl): New variable.
---
 gnu/packages/haskell-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 0e00bc0605..a385d3109e 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -52,6 +52,7 @@
   #:use-module (gnu packages emacs)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages graphviz)
+  #:use-module (gnu packages gsasl)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages haskell)
   #:use-module (gnu packages haskell-apps)
@@ -15854,3 +15855,29 @@ than the standard TCP connection.")
     (synopsis "Bindings for the libXML2 SAX interface")
     (description "A very simple and direct binding to libXML2's SAX parser.")
     (license license:expat)))
+
+(define-public ghc-gsasl
+  (package
+    (name "ghc-gsasl")
+    (version "0.3.7")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://hackage.haskell.org/package/gsasl/gsasl-"
+               version
+               ".tar.gz"))
+        (sha256
+          (base32 "11i12r9s30jrq8hkgqagf2fd129r6ya607s9ibw549ablsxgr507"))))
+    (build-system haskell-build-system)
+    (arguments
+      `(#:cabal-revision
+        ("1" "1c806a82qd1hkxxfh1mwk0i062bz6fkaap5ys3n4x9n6wjv7ilin")))
+    (inputs
+      `(("ghc-monad-loops" ,ghc-monad-loops)
+        ("gsasl" ,gsasl)))
+    (native-inputs `(("pkg-config" ,pkg-config)))
+    (home-page "https://git.singpolyma.net/gsasl-haskell")
+    (synopsis "Bindings for GNU libgsasl")
+    (description "Low-level bindings for using gsasl from Haskell.")
+    (license license:gpl3)))
-- 
2.20.1