unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: guix-devel@gnu.org
Subject: [PATCH 2/2] gnu: ghc-process: Replace reference to /bin/sh.
Date: Sat,  1 Oct 2016 17:51:10 +0200	[thread overview]
Message-ID: <20161001155110.9024-2-rekado@elephly.net> (raw)
In-Reply-To: <20161001155110.9024-1-rekado@elephly.net>

* gnu/packages/haskell.scm (ghc-process)[arguments]: Add phases
"patch-reference-to-/bin/sh" to replace reference to /bin/sh.
---
 gnu/packages/haskell.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index d79dfd6..cf17c4f 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -6918,6 +6918,7 @@ supported.  A module of colour names (\"Data.Colour.Names\") is provided.")
 files and directories in a portable way.")
     (license license:bsd-3)))
 
+;; Do not use this as an input.  It is part of GHC.
 (define-public ghc-process
   (package
     (name "ghc-process")
@@ -6932,6 +6933,14 @@ files and directories in a portable way.")
         (base32
          "1v1bav5isqxq9fc4lw714x94qbfsjbm2nn12kjp69r1ql8jaaaqw"))))
     (build-system haskell-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-reference-to-/bin/sh
+           (lambda _
+             (substitute* "System/Process/Posix.hs"
+               (("/bin/sh") (which "sh")))
+             #t)))))
     (home-page "http://hackage.haskell.org/package/process")
     (synopsis "System process libraries")
     (description
-- 
2.10.0

  reply	other threads:[~2016-10-01 15:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-01 15:51 [PATCH 1/2] gnu: Do not propagate inputs in haskell.scm Ricardo Wurmus
2016-10-01 15:51 ` Ricardo Wurmus [this message]
2016-10-02 13:41   ` [PATCH 2/2] gnu: ghc-process: Replace reference to /bin/sh Ludovic Courtès
2016-10-02 15:03     ` Ricardo Wurmus
2016-10-02 13:40 ` [PATCH 1/2] gnu: Do not propagate inputs in haskell.scm Ludovic Courtès
2016-10-02 15:34   ` Ricardo Wurmus
  -- strict thread matches above, loose matches on Subject: below --
2016-10-02 15:51 [PATCH 2/2] gnu: ghc-process: Replace reference to /bin/sh Federico Beffa

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161001155110.9024-2-rekado@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).