From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul van der Walt Subject: [PATCH 13/43] gnu: ghc-old-time: Add variable. Date: Thu, 15 Oct 2015 14:21:07 +0200 Message-ID: <1444911697-15515-13-git-send-email-paul@denknerd.org> References: <1444911697-15515-1-git-send-email-paul@denknerd.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmhY6-0002U5-EN for guix-devel@gnu.org; Thu, 15 Oct 2015 08:22:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmhY2-0006ug-I9 for guix-devel@gnu.org; Thu, 15 Oct 2015 08:22:22 -0400 Received: from mx01.mykolab.com ([95.128.36.1]:29316 helo=mx-out02.mykolab.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmhY2-0006tu-C7 for guix-devel@gnu.org; Thu, 15 Oct 2015 08:22:18 -0400 Received: from mx08.mykolab.com (unknown [10.20.7.48]) by mx-out02.mykolab.com (Postfix) with ESMTPS id 8928661C9A for ; Thu, 15 Oct 2015 14:22:16 +0200 (CEST) In-Reply-To: <1444911697-15515-1-git-send-email-paul@denknerd.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 * gnu/packages/haskell.scm (ghc-old-time): New variable. --- gnu/packages/haskell.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 7950d7e..2b607d1 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -386,6 +386,42 @@ provides instances for types from the base, containers, dlist and old-locale packages.") (license bsd-3))) +(define-public ghc-old-time + (package + (name "ghc-old-time") + (version "1.1.0.3") + (source + (origin + (method url-fetch) + (uri (string-append + "http://hackage.haskell.org/package/old-time/old-time-" + version + ".tar.gz")) + (sha256 + (base32 + "1h9b26s3kfh2k0ih4383w90ibji6n0iwamxp6rfp2lbq1y5ibjqw")))) + (build-system haskell-build-system) + (arguments + `(#:phases + (alist-cons-before + 'configure 'fix-/bin/sh + (lambda _ + ;; Use `sh', not `/bin/sh'. + (substitute* (find-files "." "Makefile|configure") + (("/bin/sh") + "sh"))) + %standard-phases))) + (propagated-inputs + `(("ghc-old-locale" ,ghc-old-locale))) + (home-page + "http://hackage.haskell.org/package/old-time") + (synopsis "Time library") + (description + "Package for backwards compatibility with the old time library. For new +projects, the newer time library is +recommended.") + (license bsd-3))) + (define-public ghc-data-default-instances-old-locale (package (name "ghc-data-default-instances-old-locale") -- 2.6.1