guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#50835] [PATCH 7/8] gnu: Add ghc-gnuidn.


From: Stephen Paul Weber
Subject: [bug#50835] [PATCH 7/8] gnu: Add ghc-gnuidn.
Date: Sun, 26 Sep 2021 21:10:32 -0500

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

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index bc2f94b6ac..44ab7072c9 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -60,6 +60,7 @@
   #:use-module (gnu packages haskell-crypto)
   #:use-module (gnu packages haskell-web)
   #:use-module (gnu packages libffi)
+  #:use-module (gnu packages libidn)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages llvm)
   #:use-module (gnu packages lua)
@@ -15906,3 +15907,37 @@ than the standard TCP connection.")
     (description
       "Low-level bindings for using gnutls from Haskell.")
     (license license:gpl3)))
+
+(define-public ghc-gnuidn
+  (package
+    (name "ghc-gnuidn")
+    (version "0.2.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://hackage.haskell.org/package/gnuidn/gnuidn-";
+               version
+               ".tar.gz"))
+        (sha256
+          (base32 "0vxrcp9xz5gsvx60k12991zn5c9nk3fgg0yw7dixbsjcfqgnnd31"))))
+    (build-system haskell-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'less-strict-dependencies
+           (lambda _
+             (substitute* "gnuidn.cabal"
+               (("chell >= 0.4 && < 0.5") "chell <0.6"))
+             #t)))))
+    (inputs `(("libidn" ,libidn)))
+    (native-inputs
+      `(("ghc-chell" ,ghc-chell)
+        ("ghc-c2hs" ,ghc-c2hs)
+        ("ghc-chell-quickcheck" ,ghc-chell-quickcheck)
+        ("ghc-quickcheck" ,ghc-quickcheck)
+        ("pkg-config" ,pkg-config)))
+    (home-page "https://hackage.haskell.org/package/gnuidn";)
+    (synopsis "Bindings for GNU IDN")
+    (description "Low-level bindings for using libidn in Haskell.")
+    (license license:gpl3)))
-- 
2.20.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]