Subject: [bug#67144] [PATCH 1/4] gnu: Add ghc-hsyslog.

From: VÖRÖSKŐI András <[email-masked]>
Date: Mon, 13 Nov 2023 06:03:48 +0100

* gnu/packages/haskell-xyz.scm (ghc-hsyslog): New variable.

Change-Id: If3bbfb8aff10fb129c5d6e626d3d62469dcbaf96
---
 gnu/packages/haskell-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index c02fd007f9..a5bd2f2196 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -33,6 +33,7 @@
 ;;; Copyright © 2022 jgart <[email-masked]>
 ;;; Copyright © 2023 Josselin Poiret <[email-masked]>
 ;;; Copyright © 2023 zamfofex <[email-masked]>
+;;; Copyright © 2023 VÖRÖSKŐI András <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -5728,6 +5729,27 @@ (define-public ghc-hsyaml
 @end itemize")
     (license license:gpl2+)))
 
+(define-public ghc-hsyslog
+  (package
+    (name "ghc-hsyslog")
+    (version "5.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (hackage-uri "hsyslog" version))
+       (sha256
+        (base32 "1kkypn0dd92aqv8dr112bhkr9k9r9mchnyyvy41kvhj2zg447v1y"))))
+    (build-system haskell-build-system)
+    (properties '((upstream-name . "hsyslog")))
+    (arguments
+     `(#:cabal-revision ("1"
+                         "0k1j46nk3z64zw4bqmvw5lgy16ih200m66rv4b6ygjqv7nglqq0b")))
+    (home-page "https://github.com/peti/hsyslog")
+    (synopsis "FFI interface to syslog(3) from POSIX.1-2001")
+    (description
+     "This package provides a Haskell interface to @code{syslog}.")
+    (license license:bsd-3)))
+
 (define-public ghc-http-api-data
   (package
     (name "ghc-http-api-data")

base-commit: af6105afc67a15a491a0a4fd18a28c9f801a0b94
-- 
2.41.0