From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] gnu: Add ghc-language-c. Date: Wed, 4 Jan 2017 00:23:58 +0100 Message-ID: <20170103232358.22619-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYR6-0000Sv-6c for guix-devel@gnu.org; Tue, 03 Jan 2017 18:24:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYR2-00037o-QL for guix-devel@gnu.org; Tue, 03 Jan 2017 18:24:08 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:43222) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYR2-00036c-Jt for guix-devel@gnu.org; Tue, 03 Jan 2017 18:24:04 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/haskell.scm (ghc-language-c): New variable. --- gnu/packages/haskell.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 8e5927a00..ef6845056 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -8129,4 +8129,31 @@ for general types.") dependency.") (license license:bsd-3))) +(define-public ghc-language-c + (package + (name "ghc-language-c") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/language-c/language-c-" + version + ".tar.gz")) + (sha256 + (base32 + "08i2bl7jmmymn2sldzlbz6ig7lx3wfwhlpadzibs3fx72z08pmc6")))) + (build-system haskell-build-system) + (inputs `(("ghc-syb" ,ghc-syb))) + (native-inputs + `(("ghc-happy" ,ghc-happy) + ("ghc-alex" ,ghc-alex))) + (home-page "http://visq.github.io/language-c/") + (synopsis "Analysis and generation of C code") + (description + "Language C is a haskell library for the analysis and generation of C code. +It features a complete, well tested parser and pretty printer for all of C99 +and a large set of GNU extensions.") + (license license:bsd-3))) + ;;; haskell.scm ends here