From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH 2/2] gnu: ghc-process: Replace reference to /bin/sh. Date: Sat, 1 Oct 2016 17:51:10 +0200 Message-ID: <20161001155110.9024-2-rekado@elephly.net> References: <20161001155110.9024-1-rekado@elephly.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqMZd-0000p4-IB for guix-devel@gnu.org; Sat, 01 Oct 2016 11:51:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqMZb-0007KS-Gq for guix-devel@gnu.org; Sat, 01 Oct 2016 11:51:36 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:21492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqMZb-0007KI-8g for guix-devel@gnu.org; Sat, 01 Oct 2016 11:51:35 -0400 In-Reply-To: <20161001155110.9024-1-rekado@elephly.net> 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" To: guix-devel@gnu.org * 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