diff mbox

[41/42] gnu: Add ghc-directory@1.2.2.0.

Message ID 20160918161022.26135-41-ng0@we.make.ritual.n0.is
State New
Headers show

Commit Message

non such Sept. 18, 2016, 4:10 p.m. UTC
* gnu/packages/haskell.scm (ghc-directory@1.2.2.0): New variable.
---
 gnu/packages/haskell.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

Comments

Leo Famulari Sept. 21, 2016, 1:06 a.m. UTC | #1
On Sun, Sep 18, 2016 at 04:10:21PM +0000, ng0 wrote:
> * gnu/packages/haskell.scm (ghc-directory@1.2.2.0): New variable.

I don't see this variable used anywhere. Did I miss it?

Either way, I think the variable should be called ghc-directory-1.2.2.0.

The convention seems to be that we use 'foo@version' on the
command-line, and 'foo-version' when naming variables.
diff mbox

Patch

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 19cbadd..af7fc13 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -7440,4 +7440,19 @@  versions of these packages distributed with different versions of GHC.
 In particular, this library supports working with POSIX files that have paths
 which can't be decoded in the current locale encoding.")
     (license license:expat)))
+
+(define-public ghc-directory@1.2.2.0
+  (package
+    (inherit ghc-directory)
+    (version "1.2.2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://hackage.haskell.org/package/directory/"
+                                  "directory-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1dbn6d48gdqh0n2rkh02asxv94ikd8849659ndc7p3h93kgj1dy4"))))
+    (arguments
+     `(#:tests? #f)))) ; test wants to run git
+
 ;;; haskell.scm ends here