From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g7NhT-00016e-Vy for guix-patches@gnu.org; Tue, 02 Oct 2018 12:39:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g7NhP-0006Kx-Py for guix-patches@gnu.org; Tue, 02 Oct 2018 12:39:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:58549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g7NhP-0006KZ-8l for guix-patches@gnu.org; Tue, 02 Oct 2018 12:39:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g7NhP-0004Zs-4t for guix-patches@gnu.org; Tue, 02 Oct 2018 12:39:03 -0400 Subject: [bug#32908] [PATCH 17/24] gnu: Add ghc-inline-c. Resent-Message-ID: From: Ricardo Wurmus Date: Tue, 2 Oct 2018 18:38:00 +0200 Message-ID: <20181002163806.5760-2-ricardo.wurmus@mdc-berlin.de> In-Reply-To: <20181002163806.5760-1-ricardo.wurmus@mdc-berlin.de> References: <20181002163255.5304-10-ricardo.wurmus@mdc-berlin.de> <20181002163806.5760-1-ricardo.wurmus@mdc-berlin.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 32908@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/haskell.scm (ghc-inline-c): New variable. --- gnu/packages/haskell.scm | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 6b8a4ee3f..9bc86bfbd 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -11069,6 +11069,52 @@ backslashes. They are useful when working with regular expressions, DOS/Windows paths and markup languages (such as XML).") (license license:bsd-3))) +(define-public ghc-inline-c + (package + (name "ghc-inline-c") + (version "0.6.1.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://hackage.haskell.org/package/inline-c/" + "inline-c-" version ".tar.gz")) + (sha256 + (base32 + "0vbfrsqsi7mdziqsnj68bsqlwbqxxhvrmy9rv6w8z18d1m8w3n6h")))) + (build-system haskell-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'create-Setup.hs + (lambda _ + (with-output-to-file "Setup.hs" + (lambda _ + (display "\ +import Distribution.Simple +main = defaultMain"))) + #t))))) + (inputs + `(("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint) + ("ghc-cryptohash" ,ghc-cryptohash) + ("ghc-hashable" ,ghc-hashable) + ("ghc-parsec" ,ghc-parsec) + ("ghc-parsers" ,ghc-parsers) + ("ghc-unordered-containers" ,ghc-unordered-containers) + ("ghc-vector" ,ghc-vector))) + (native-inputs + `(("ghc-quickcheck" ,ghc-quickcheck) + ("ghc-hspec" ,ghc-hspec) + ("ghc-raw-strings-qq" ,ghc-raw-strings-qq) + ("ghc-regex-posix" ,ghc-regex-posix))) + (home-page "http://hackage.haskell.org/package/inline-c") + (synopsis "Write Haskell source files including C code inline") + (description + "inline-c lets you seamlessly call C libraries and embed high-performance +inline C code in Haskell modules. Haskell and C can be freely intermixed in +the same source file, and data passed to and from code in either language with +minimal overhead. No FFI required.") + (license license:expat))) + (define-public ghc-weigh (package (name "ghc-weigh") -- 2.19.0