diff mbox series

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

Message ID 20220114024546.75747-12-singpolyma@singpolyma.net
State New
Headers show
Series [bug#50835,v2,01/24] gnu: Add ghc-cache. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/applying patch success View Laminar job
cbaines/issue success View issue
cbaines/issue success View issue

Commit Message

Stephen Paul Weber Jan. 14, 2022, 2:45 a.m. UTC
* gnu/packages/haskell-xyz.scm (ghc-hstatsd): New variable.
---
 gnu/packages/haskell-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
diff mbox series

Patch

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