From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:45550) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irjyj-00053K-Qj for guix-patches@gnu.org; Wed, 15 Jan 2020 09:49:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irjyg-0004QV-1s for guix-patches@gnu.org; Wed, 15 Jan 2020 09:49:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56735) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1irjyf-0004QN-UK for guix-patches@gnu.org; Wed, 15 Jan 2020 09:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1irjyf-0004Ml-SC for guix-patches@gnu.org; Wed, 15 Jan 2020 09:49:01 -0500 Subject: [bug#39105] [PATCH 2/2] gnu: Add ghc-llvm-hs-pure Resent-Message-ID: From: JoJo In-Reply-To: <87h80w4w67.fsf@jo.zone> References: <87h80w4w67.fsf@jo.zone> Date: Wed, 15 Jan 2020 15:47:49 +0100 Message-ID: <87eew04vze.fsf@jo.zone> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39105@debbugs.gnu.org Sorry, screwed up the commit title / subject message of the second patch there. It's supposed to be "[PATCH 2/2] gnu: Add ghc-llvm-hs". On Wed, Jan 15 2020, JoJo wrote: > * gnu/packages/haskell-xyz.scm > (ghc-llvm-hs): New variable. > --- > gnu/packages/haskell-xyz.scm | 37 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm > index a04e8f652e..af507d9d43 100644 > --- a/gnu/packages/haskell-xyz.scm > +++ b/gnu/packages/haskell-xyz.scm > @@ -54,6 +54,7 @@ > #:use-module (gnu packages haskell-web) > #:use-module (gnu packages libffi) > #:use-module (gnu packages linux) > + #:use-module (gnu packages llvm) > #:use-module (gnu packages lua) > #:use-module (gnu packages maths) > #:use-module (gnu packages ncurses) > @@ -6733,6 +6734,42 @@ llvm-hs package builds on this one with FFI bindings to LLVM, but llvm-hs-pure > does not require LLVM to be available.") > (license license:bsd-3))) > > +(define-public ghc-llvm-hs > + (package > + (name "ghc-llvm-hs") > + (version "9.0.1") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "https://hackage.haskell.org/package/llvm-hs/llvm-hs-" > + version > + ".tar.gz")) > + (sha256 > + (base32 > + "0723xgh45h9cyxmmjsvxnsp8bpn1ljy4qgh7a7vqq3sj9d6wzq00")))) > + (build-system haskell-build-system) > + (inputs `(("ghc-attoparsec" ,ghc-attoparsec) > + ("ghc-exceptions" ,ghc-exceptions) > + ("ghc-utf8-string" ,ghc-utf8-string) > + ("ghc-llvm-hs-pure" ,ghc-llvm-hs-pure) > + ("llvm" ,llvm-9))) > + (native-inputs `(("ghc-tasty" ,ghc-tasty) > + ("ghc-tasty-hunit" ,ghc-tasty-hunit) > + ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck) > + ("ghc-quickcheck" ,ghc-quickcheck) > + ("ghc-temporary" ,ghc-temporary) > + ("ghc-pretty-show" ,ghc-pretty-show) > + ("ghc-temporary" ,ghc-temporary))) > + (home-page "http://github.com/llvm-hs/llvm-hs/") > + (synopsis "General purpose LLVM bindings") > + (description "llvm-hs is a set of Haskell bindings for LLVM. Unlike other > +current Haskell bindings, it uses an ADT to represent LLVM IR, and so offers > +two advantages: it handles almost all of the stateful complexities of using > +the LLVM API to build IR; and it supports moving IR not only from Haskell into > +LLVM C++ objects, but the other direction - from LLVM C++ into Haskell.") > + (license license:bsd-3))) > + > (define-public ghc-logging-facade > (package > (name "ghc-logging-facade") > -- > 2.24.1