unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: 44752@debbugs.gnu.org
Subject: [bug#44752] [PATCH 1/4] gnu: Add ghc-bencode.
Date: Thu, 19 Nov 2020 21:45:36 -0500	[thread overview]
Message-ID: <20201120024539.8539-1-kyle@kyleam.com> (raw)
In-Reply-To: <20201120024244.8187-1-kyle@kyleam.com>

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

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 19eabd949b..19ba4e1c41 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -997,6 +997,32 @@ (e.g., ByteString and Vector).  At the same time, there are lots of other
 wishing to create a new prelude should use CorePrelude.")
     (license license:expat)))
 
+(define-public ghc-bencode
+  (package
+    (name "ghc-bencode")
+    (version "0.6.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/bencode/bencode-"
+             version ".tar.gz"))
+       (sha256
+        (base32 "0znv0y3b3zm5jvhlvj5f5s7y93db67j9yd59w1bnrw2pqv30gqaq"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-transformers-compat" ,ghc-transformers-compat)))
+    (native-inputs
+     `(("ghc-hspec" ,ghc-hspec)
+       ("ghc-quickcheck" ,ghc-quickcheck)))
+    (home-page "https://hackage.haskell.org/package/bencode")
+    (synopsis "Parsers and printers for bencoded data")
+    (description
+     "This library provides parsers and printers for bencoded data.  Bencode
+is the encoding used by the peer-to-peer file sharing system BitTorrent for
+storing and transmitting loosely structured data.")
+    (license license:bsd-3)))
+
 (define-public ghc-bifunctors
   (package
     (name "ghc-bifunctors")
-- 
2.29.2.454.gaff20da3a2





  reply	other threads:[~2020-11-20  2:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-20  2:42 [bug#44752] [PATCH 0/4] Update git-annex to 8.20201116 Kyle Meyer
2020-11-20  2:45 ` Kyle Meyer [this message]
2020-11-20  2:45 ` [bug#44752] [PATCH 2/4] gnu: Add ghc-torrent Kyle Meyer
2020-11-20  2:45 ` [bug#44752] [PATCH 3/4] gnu: ghc-filepath-bytestring: Update to 1.4.2.1.6 Kyle Meyer
2020-11-20  2:45 ` [bug#44752] [PATCH 4/4] gnu: git-annex: Update to 8.20201116 Kyle Meyer
2020-11-25 12:44 ` bug#44752: [PATCH 0/4] Update git-annex " Mathieu Othacehe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201120024539.8539-1-kyle@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=44752@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).