guix-patches
[Top][All Lists]
Advanced

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

[bug#50835] [PATCH v2 12/24] gnu: Add ghc-hstatsd.


From: Stephen Paul Weber
Subject: [bug#50835] [PATCH v2 12/24] gnu: Add ghc-hstatsd.
Date: Thu, 13 Jan 2022 21:45:34 -0500

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

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 602fdc3ac1..146d5ce2cf 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -16364,3 +16364,27 @@ Does only what it needs to do and nothing more, no XEP 
wrappers etc.")
     (description
       "Base58 ByteString is an implementation of BASE58 transcoding.")
     (license license:public-domain)))
+
+(define-public ghc-hstatsd
+  (package
+    (name "ghc-hstatsd")
+    (version "0.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (hackage-uri "hstatsd" version))
+        (sha256
+          (base32 "092q52yyb1xdji1y72bdcgvp8by2w1z9j717sl1gmh2p89cpjrs4"))))
+    (build-system haskell-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-for-network-3
+           (lambda _
+             (substitute* "src/Network/StatsD.hs"
+               (("sClose") "close")))))))
+    (inputs (list ghc-network))
+    (home-page "https://github.com/mokus0/hstatsd";)
+    (synopsis "Quick and dirty statsd interface")
+    (description "Hstatsd is a statsd interface.")
+    (license license:public-domain)))
-- 
2.30.2





reply via email to

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