From: ericbavier@openmailbox.org
To: guix-devel@gnu.org, Paul van der Walt <paul@denknerd.org>
Subject: Re: [PATCH] gnu: Add ghc-unix-time.
Date: Thu, 22 Oct 2015 03:47:46 -0500 [thread overview]
Message-ID: <1445503671-30014-18-git-send-email-ericbavier@openmailbox.org> (raw)
In-Reply-To: <1445503671-30014-1-git-send-email-ericbavier@openmailbox.org>
From: Eric Bavier <ericbavier@openmailbox.org>
> * gnu/packages/haskell.scm (ghc-unix-time): New variable.
> ---
> gnu/packages/haskell.scm | 40 ++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
> diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
> index fc1f836..de55610 100644
> --- a/gnu/packages/haskell.scm
> +++ b/gnu/packages/haskell.scm
> @@ -972,6 +972,46 @@ transformers 0.2 or 0.3 compatibility to run on old versions of the platform,
> but also need those types.")
> (license bsd-3)))
>
> +(define-public ghc-unix-time
> + (package
> + (name "ghc-unix-time")
> + (version "0.3.6")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append
> + "http://hackage.haskell.org/package/unix-time/unix-time-"
> + version
> + ".tar.gz"))
> + (sha256
> + (base32
> + "0dyvyxwaffb94bgri1wc4b9wqaasy32pyjn0lww3dqblxv8fn5ax"))))
> + (build-system haskell-build-system)
> + (arguments
> + `(#:tests? #f ; FIXME: Test fails with "System.Time not found". This is
> + ; weird, that should be provided by GHC 7.10.2.
> + #:phases
> + (alist-cons-before
> + 'configure 'fix-/bin/sh
> + (lambda _
> + ;; Use `sh', not `/bin/sh'.
> + (substitute* (find-files "." "Makefile|configure")
> + (("/bin/sh")
> + "sh")))
> + %standard-phases)))
See the ghc-x11 package for a, IMHO, more elegant solution.
This appears to be a more general issue however. Any package that declares in
its *.cabal file "build-type: Configure" is going to need CONFIG_SHELL and/or
SHELL in the environment. See additionally the proposed ghc-sdl,
ghc-sdl-image, ghc-sdl-mixer, and ghc-old-time patches.
Perhaps we could patch haskell-build-system to export appropriate CONFIG_SHELL
and SHELL variables if it sees a "configure" file in the top-level source
directory. WDYT? Would you like to send a patch?
`~Eric
next prev parent reply other threads:[~2015-10-22 13:42 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-22 3:10 Reviews for wip-haskell-platform-7.10.2-a ericbavier
2015-10-22 3:10 ` [PATCH] gnu: Add ghc-attoparsec ericbavier
2015-10-22 10:40 ` Paul van der Walt
2015-10-22 3:10 ` [PATCH] gnu: Add ghc-base64-bytestring ericbavier
2015-10-22 10:44 ` Paul van der Walt
2015-10-22 3:18 ` [PATCH] gnu: Add ghc-blaze-builder ericbavier
2015-10-22 3:18 ` [PATCH] gnu: Add ghc-blaze-markup ericbavier
2015-10-22 10:54 ` Paul van der Walt
2015-10-22 3:18 ` [PATCH] gnu: Add ghc-bytestring-builder ericbavier
2015-10-22 11:01 ` Paul van der Walt
2015-10-22 11:02 ` [PATCH] gnu: Add ghc-blaze-builder Paul van der Walt
2015-10-22 3:25 ` [PATCH] gnu: Add ghc-cereal ericbavier
2015-10-22 3:25 ` [PATCH] gnu: Add ghc-clock ericbavier
2015-10-22 13:57 ` Paul van der Walt
2015-10-22 3:25 ` [PATCH] gnu: Add ghc-cpphs ericbavier
2015-10-22 11:20 ` Paul van der Walt
2015-10-22 11:25 ` [PATCH] gnu: Add ghc-cereal Paul van der Walt
2015-10-22 3:32 ` [PATCH] gnu: Add ghc-doctest ericbavier
2015-10-22 3:32 ` [PATCH] gnu: Add ghc-fingertree ericbavier
2015-10-22 11:27 ` Paul van der Walt
2015-10-22 3:32 ` [PATCH] gnu: Add ghc-free ericbavier
2015-10-22 11:28 ` Paul van der Walt
2015-10-22 12:58 ` [PATCH] gnu: Add ghc-doctest Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-gluraw ericbavier
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-haddock-api ericbavier
2015-10-22 15:20 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-haskell-src-exts ericbavier
2015-10-22 14:07 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-hlint ericbavier
2015-10-22 15:15 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-hscolour ericbavier
2015-10-22 15:17 ` Paul van der Walt
2015-10-22 16:48 ` Eric Bavier
2015-10-22 16:53 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-opengl ericbavier
2015-10-22 15:10 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-openglraw ericbavier
2015-10-22 15:07 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-pcre-light ericbavier
2015-10-22 15:06 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-reflection ericbavier
2015-10-22 15:04 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-regex-base ericbavier
2015-10-22 15:03 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-regex-posix ericbavier
2015-10-22 15:01 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-regex-tdfa-rc ericbavier
2015-10-22 15:00 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-sdl-mixer ericbavier
2015-10-22 16:04 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-semigroupoids ericbavier
2015-10-22 14:57 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-semigroups ericbavier
2015-10-22 14:15 ` Paul van der Walt
2015-10-22 16:54 ` Eric Bavier
2015-10-22 14:56 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-tasty-golden ericbavier
2015-10-22 14:54 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-uniplate ericbavier
2015-10-22 14:52 ` Paul van der Walt
2015-10-22 8:47 ` ericbavier [this message]
2015-10-22 15:43 ` [PATCH] gnu: Add ghc-unix-time Paul van der Walt
2015-10-22 16:22 ` Andreas Enge
2015-10-22 16:50 ` Paul van der Walt
2015-10-22 16:57 ` Eric Bavier
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-wai ericbavier
2015-10-22 14:50 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-xml ericbavier
2015-10-22 14:48 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add ghc-zip-archive ericbavier
2015-10-22 14:47 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: Add Idris, the dependently-typed language ericbavier
2015-10-22 14:45 ` Paul van der Walt
2015-10-22 17:02 ` Eric Bavier
2015-10-22 17:20 ` Paul van der Walt
2015-10-22 8:47 ` [PATCH] gnu: ghc-split: Update dependencies ericbavier
2015-10-22 16:16 ` Paul van der Walt
2015-10-22 17:06 ` Eric Bavier
2015-10-22 17:26 ` Paul van der Walt
2015-10-22 14:21 ` [PATCH] gnu: Add ghc-gluraw Paul van der Walt
2015-10-22 10:27 ` Reviews for wip-haskell-platform-7.10.2-a Paul van der Walt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1445503671-30014-18-git-send-email-ericbavier@openmailbox.org \
--to=ericbavier@openmailbox.org \
--cc=guix-devel@gnu.org \
--cc=paul@denknerd.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.