Subject: [PATCH 6/8] gnu: Add ghc-gnutls.

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

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

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index a385d3109e..bc2f94b6ac 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -69,6 +69,7 @@
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages sdl)
   #:use-module (gnu packages serialization)
+  #:use-module (gnu packages tls)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
   #:use-module (guix build-system haskell)
@@ -15881,3 +15882,27 @@ than the standard TCP connection.")
     (synopsis "Bindings for GNU libgsasl")
     (description "Low-level bindings for using gsasl from Haskell.")
     (license license:gpl3)))
+
+(define-public ghc-gnutls
+  (package
+    (name "ghc-gnutls")
+    (version "0.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://hackage.haskell.org/package/gnutls/gnutls-"
+               version
+               ".tar.gz"))
+        (sha256
+          (base32 "1c5pm0d80wpgh2bkcgbvmc72agf89h8ghfnrn1m1x3fljbgzvrn0"))))
+    (build-system haskell-build-system)
+    (inputs
+      `(("ghc-monads-tf" ,ghc-monads-tf)
+        ("gnutls" ,gnutls)))
+    (native-inputs `(("pkg-config" ,pkg-config)))
+    (home-page "https://hackage.haskell.org/package/gnutls")
+    (synopsis "Bindings for GNU libgnutls")
+    (description
+      "Low-level bindings for using gnutls from Haskell.")
+    (license license:gpl3)))
-- 
2.20.1