From mboxrd@z Thu Jan 1 00:00:00 1970 From: ericbavier@openmailbox.org Subject: Re: [PATCH] gnu: Add ghc-clock. Date: Wed, 21 Oct 2015 22:25:07 -0500 Message-ID: <1445484334-25558-2-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]:37268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpB65-0000C8-OS 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-0002IE-JH for guix-devel@gnu.org; Thu, 22 Oct 2015 04:19:41 -0400 Received: from smtp29.openmailbox.org ([62.4.1.63]:46982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpB61-0002Hu-79 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-clock): New variable. > --- > gnu/packages/haskell.scm | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm > index 6aa3a91..be37c5a 100644 > --- a/gnu/packages/haskell.scm > +++ b/gnu/packages/haskell.scm > @@ -2445,6 +2445,28 @@ or timeout period. This package provides alternative functions which use the > unbounded @code{Integer} type.") > (license bsd-3))) > > +(define-public ghc-clock > + (package > + (name "ghc-clock") > + (version "0.5.1") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "http://hackage.haskell.org/package/" > + "clock/" > + "clock-" version ".tar.gz")) > + (sha256 > + (base32 "1ncph7vi2q6ywwc8ysxl1ibw6i5dwfvln88ssfazk8jgpj4iyykw")))) > + (build-system haskell-build-system) > + (arguments `(#:tests? #f)) ;; Testing suite depends on ghc-clock A trick that's used with some other packages is to define an unexported *-bootstrap package. The ghc-clock-bootstrap package would have tests disabled, then the ghc-clock package would inherit from the ghc-clock-bootstrap package, declare ghc-clock-bootstrap as an input, and enable tests. `~Eric