guix-commits
[Top][All Lists]
Advanced

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

63/257: gnu: ghc-alex: Update to 3.2.4.


From: Ricardo Wurmus
Subject: 63/257: gnu: ghc-alex: Update to 3.2.4.
Date: Thu, 27 Sep 2018 15:46:59 -0400 (EDT)

rekado pushed a commit to branch wip-haskell
in repository guix.

commit 2564834acc25c81d134a5d9561955b1050d024d2
Author: Timothy Sample <address@hidden>
Date:   Tue Aug 28 22:19:15 2018 -0400

    gnu: ghc-alex: Update to 3.2.4.
    
    * gnu/packages/haskell.scm (ghc-alex): Update to 3.2.4.
    [arguments]: Add a phase to set environment variables for tests.
    [native-inputs]: Add which.
---
 gnu/packages/haskell.scm | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index b344165..f1c3580 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -994,7 +994,7 @@ package are to parse or generate Haskell 98 code.")
 (define-public ghc-alex
   (package
     (name "ghc-alex")
-    (version "3.2.3")
+    (version "3.2.4")
     (source
      (origin
        (method url-fetch)
@@ -1004,9 +1004,20 @@ package are to parse or generate Haskell 98 code.")
              ".tar.gz"))
        (sha256
         (base32
-         "0bi1cs9b8ir33h1fl6x2xw4ymygapqbr713ridpf7rmk2wa7jqqs"))))
+         "0cpjixgsr0b2x4s6hz4aa6gnmjw9i7xd9nlfi8m37zqlidq4v3nm"))))
     (build-system haskell-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'set-check-variables
+           (lambda _
+             (setenv "PATH" (string-append (getcwd) "/dist/build/alex:"
+                                           (getenv "PATH")))
+             (setenv "alex_datadir" (string-append (getcwd) "/data"))
+             #t)))))
     (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
+    (native-inputs
+     `(("which" ,which)))
     (home-page "https://www.haskell.org/alex/";)
     (synopsis
      "Tool for generating lexical analysers in Haskell")



reply via email to

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