diff mbox series

[bug#50835,6/8] gnu: Add ghc-gnutls.

Message ID 20210927021033.17700-6-singpolyma@singpolyma.net
State New
Headers show
Series New Haskell packages: cache, redis client, xmpp | expand

Checks

Context Check Description
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue

Commit Message

Stephen Paul Weber Sept. 27, 2021, 2:10 a.m. UTC
* gnu/packages/haskell-xyz.scm (ghc-gnutls): New variable.
---
 gnu/packages/haskell-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
diff mbox series

Patch

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)))