Subject: bug#33987: closed (Re: [bug#33987] [PATCH] gnu: Add ghc-tldr.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 17 Jan 2019 09:06:02 +0000

Your bug report

#33987: [PATCH] gnu: Add ghc-tldr.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
33987: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33987
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#33987] [PATCH] gnu: Add ghc-tldr.
From: Ludovic Courtès <[email-masked]>
To: Gabriel Hondet <[email-masked]>
Cc: [email-masked]
Date: Thu, 17 Jan 2019 10:05:33 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Gabriel Hondet <[email-masked]> skribis:

> It builds correctly for me on 38f18309e1f13b1df9add9dafcbc634f0e15004c
> and on 64d25f0be214795050b058047133d11f1d5dcbf5 as well, so I don't
> know... But interestingly, I have already seen this error, with
> text-1.2.3.0 (when trying to build ghc-conduit-extra for instance).
>
> On the other hand I have removed two dependencies that were specified by
> the ~guix import~ command but seemed useless, as it works without them
> (ghc-text and ghc-ansi-terminal).
>
> * gnu/packages/haskell.scm (ghc-tldr): New variable.

Well, it works for me this time.

Applied with the minor changes below.

The ‘tldr’ command looks pretty handy!

Thanks,
Ludo’.

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 9db23be01e..b40a5d05da 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -11389,12 +11389,12 @@ avoid the problem of partial intermediate files.")
     (native-inputs
      `(("ghc-tasty" ,ghc-tasty)
        ("ghc-tasty-golden" ,ghc-tasty-golden)))
-    (home-page
-     "https://github.com/psibi/tldr-hs#readme")
+    (home-page "https://github.com/psibi/tldr-hs#readme")
     (synopsis "Haskell tldr client")
-    (description "Haskell client allowing the user to update and view
-@code{tldr} pages from a shell.  The @code{tldr} pages are a community effort
-to simplify the man pages with practical examples.")
+    (description "This package provides the @command{tldr} command and a
+Haskell client library allowing users to update and view @code{tldr} pages
+from a shell.  The @code{tldr} pages are a community effort to simplify the
+man pages with practical examples.")
     (license license:bsd-3)))
 
 ;;; haskell.scm ends here

Subject: [PATCH] gnu: Add ghc-tldr.
From: Gabriel Hondet <[email-masked]>
To: [email-masked]
Date: Sat, 5 Jan 2019 13:05:06 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 8d0e2aef6..9a05f2a5c 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -11365,4 +11365,37 @@ embedded in your Haskell code.")
 avoid the problem of partial intermediate files.")
     (license license:expat)))
 
+(define-public ghc-tldr
+  (package
+    (name "ghc-tldr")
+    (version "0.4.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://hackage.haskell.org/package/tldr/tldr-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "0nc581y9jjzwd8l88g48c72mla7k6q1w102akl7gl5jsk9ljamd3"))))
+    (build-system haskell-build-system)
+    (inputs
+     `(("ghc-cmark" ,ghc-cmark)
+       ("ghc-text" ,ghc-text)
+       ("ghc-ansi-terminal" ,ghc-ansi-terminal)
+       ("ghc-optparse-applicative"
+        ,ghc-optparse-applicative)
+       ("ghc-typed-process" ,ghc-typed-process)
+       ("ghc-semigroups" ,ghc-semigroups)))
+    (native-inputs
+     `(("ghc-tasty" ,ghc-tasty)
+       ("ghc-tasty-golden" ,ghc-tasty-golden)))
+    (home-page
+     "https://github.com/psibi/tldr-hs#readme")
+    (synopsis "Haskell tldr client")
+    (description
+     "Haskell tldr client with support for updating and viewing tldr pages.")
+    (license license:bsd-3)))
+
 ;;; haskell.scm ends here
-- 
2.20.1