From mboxrd@z Thu Jan 1 00:00:00 1970 From: ericbavier@openmailbox.org Subject: Re: [PATCH] gnu: ghc-split: Update dependencies. Date: Thu, 22 Oct 2015 03:47:51 -0500 Message-ID: <1445503671-30014-23-git-send-email-ericbavier@openmailbox.org> References: <1445483479-19104-1-git-send-email-ericbavier@openmailbox.org> <1445503671-30014-1-git-send-email-ericbavier@openmailbox.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpG8E-0004Bh-8p for guix-devel@gnu.org; Thu, 22 Oct 2015 09:42:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpG8C-0008AZ-Ax for guix-devel@gnu.org; Thu, 22 Oct 2015 09:42:14 -0400 Received: from smtp14.openmailbox.org ([62.4.1.48]:44249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpG8C-0008A3-65 for guix-devel@gnu.org; Thu, 22 Oct 2015 09:42:12 -0400 In-Reply-To: <1445503671-30014-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-split): Update package dependencies for > compatibility with new GHC. > --- > gnu/packages/haskell.scm | 21 ++++++++++++++++++++- > 1 file changed, 20 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm > index 2d5f857..6b4b5eb 100644 > --- a/gnu/packages/haskell.scm > +++ b/gnu/packages/haskell.scm > @@ -1397,8 +1397,27 @@ and high speed.") > (base32 > "0xa3j0gwr6k5vizxybnzk5fgb3pppgspi6mysnp2gwjp2dbrxkzr")))) > (build-system haskell-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (add-before > + 'configure 'update-cabal > + ;; the cabal file on hackage is updated, but the tar.gz does not > + ;; include it. > + (lambda* _ > + (copy-file (assoc-ref %build-inputs "ghc-split-cabal-update") > + "split.cabal")))))) > (inputs > - `(("ghc-quickcheck" ,ghc-quickcheck))) > + `(("ghc-quickcheck" ,ghc-quickcheck) > + ("ghc-split-cabal-update" > + ,(origin > + (method url-fetch) > + (uri (string-append > + "https://hackage.haskell.org/package/split-" > + version "/revision/1.cabal")) > + (sha256 > + (base32 > + "1i1h5v1zqvganhzy1wdd9r648yjpir078n0g8051njg82h2f964h")))))) > (home-page "http://hackage.haskell.org/package/split") > (synopsis > "Combinator library for splitting lists") Similarly to the xmonad cabal patch, perhaps this could be addressed with #:configure-flags '("--allow-newer=base") with an appropriate comment. Otherwise using an origin snippet. `~Eric