From mboxrd@z Thu Jan 1 00:00:00 1970 From: ericbavier@openmailbox.org Subject: Re: [PATCH] gnu: Add ghc-cpphs. Date: Wed, 21 Oct 2015 22:25:08 -0500 Message-ID: <1445484334-25558-3-git-send-email-ericbavier@openmailbox.org> References: <1445483479-19104-1-git-send-email-ericbavier@openmailbox.org> <1445484334-25558-1-git-send-email-ericbavier@openmailbox.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpB65-0000C9-Of for guix-devel@gnu.org; Thu, 22 Oct 2015 04:19:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpB61-0002IN-Vr for guix-devel@gnu.org; Thu, 22 Oct 2015 04:19:41 -0400 Received: from smtp29.openmailbox.org ([62.4.1.63]:54413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpB61-0002II-Q7 for guix-devel@gnu.org; Thu, 22 Oct 2015 04:19:37 -0400 In-Reply-To: <1445484334-25558-1-git-send-email-ericbavier@openmailbox.org> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org, Paul van der Walt From: Eric Bavier > * gnu/packages/haskell.scm (ghc-cpphs): New variable. > --- > gnu/packages/haskell.scm | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm > index aa038e4..cd2456d 100644 > --- a/gnu/packages/haskell.scm > +++ b/gnu/packages/haskell.scm > @@ -413,6 +413,37 @@ are no options for manipulating the reflected expressions beyond showing > them.") > (license bsd-3))) > > +(define-public ghc-cpphs > + (package > + (name "ghc-cpphs") We should probably name this package "cpphs". > + (version "1.19.3") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "http://hackage.haskell.org/package/cpphs/cpphs-" > + version > + ".tar.gz")) > + (sha256 > + (base32 > + "1njpmxgpah5pcqppcl1cxb5xicf6xlqrd162qm12khp9hainlm72")))) > + (build-system haskell-build-system) > + (propagated-inputs > + `(("ghc-polyparse" ,ghc-polyparse) > + ("ghc-old-locale" ,ghc-old-locale) > + ("ghc-old-time" ,ghc-old-time))) > + (home-page "http://projects.haskell.org/cpphs/") > + (synopsis > + "Liberalised re-implementation of cpp, the C pre-processor") > + (description > + "Cpphs is a re-implementation of the C pre-processor that is both more > +compatible with Haskell, and itself written in Haskell so that it can be > +distributed with compilers. This version of the C pre-processor is > +pretty-much feature-complete and compatible with traditional (K&R) > +pre-processors. Additional features include: a plain-text mode; an option to > +unlit literate code files; and an option to turn off macro-expansion.") > + (license lgpl2.1))) It looks to me as if the library portions are under the lgpl2.1+ (the '+' because they specify no version), and the executable 'cpphs' is under the gpl3+ (again, because no version is specified in the source), so both licenses should be listed. `~Eric > + > (define-public ghc-reflection > (package > (name "ghc-reflection") > -- > 2.5.0 >