all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "B. Wilson via Guix-patches" via <guix-patches@gnu.org>
To: 65931@debbugs.gnu.org
Cc: "B. Wilson" <elaexuotee@wilsonb.com>
Subject: [bug#65931] [PATCH] gnu: Add apple-bash.
Date: Thu, 14 Sep 2023 13:57:19 +0900	[thread overview]
Message-ID: <20230914045732.1010-1-elaexuotee@wilsonb.com> (raw)

* gnu/packages/apple.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODELS): Add it.
---
 gnu/local.mk           |  2 ++
 gnu/packages/apple.scm | 57 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)
 create mode 100644 gnu/packages/apple.scm

diff --git a/gnu/local.mk b/gnu/local.mk
index 924d497057..fcce8b39b4 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -59,6 +59,7 @@
 # Copyright © 2023 Zheng Junjie <873216071@qq.com>
 # Copyright © 2023 Ivana Drazovic <iv.dra@hotmail.com>
 # Copyright © 2023 Andy Tai <atai@atai.org>
+# Copyright © 2023 B. Wilson <elaexuotee@wilsonb.com>
 #
 # This file is part of GNU Guix.
 #
@@ -126,6 +127,7 @@ GNU_SYSTEM_MODULES =				\
   %D%/packages/anthy.scm			\
   %D%/packages/antivirus.scm			\
   %D%/packages/apl.scm				\
+  %D%/packages/apple.scm			\
   %D%/packages/apparmor.scm			\
   %D%/packages/apr.scm				\
   %D%/packages/arcan.scm			\
diff --git a/gnu/packages/apple.scm b/gnu/packages/apple.scm
new file mode 100644
index 0000000000..6b181a1fdc
--- /dev/null
+++ b/gnu/packages/apple.scm
@@ -0,0 +1,57 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2022 B. Wilson <elaexuotee@wilsonb.com>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages apple)
+  #:use-module (gnu packages bison)
+  #:use-module (guix build-system gnu)
+  #:use-module (guix packages)
+  #:use-module (guix git-download)
+  #:use-module ((guix licenses) #:prefix license:))
+
+(define-public apple-bash
+  (package
+    (name "apple-bash")
+    (version "125")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/apple-oss-distributions/bash.git")
+               (commit (string-append "bash-" version))))
+        (sha256
+          (base32 "1d4s1z57yiyhgb6i22kb9al31j1fv9a4rp1bb747ny6grdvc4919"))
+        (file-name (git-file-name name version))))
+    (build-system gnu-build-system)
+    (native-inputs (list bison))
+    (arguments
+      '(#:phases
+        (modify-phases %standard-phases
+          (add-before 'configure 'pre-configure
+            (lambda _
+              ;; An XCode project wraps the actual bash source.
+              (chdir "bash-3.2")
+              ;; The xlocale.h header was removed in glibc 2.26.
+              (substitute* "lib/glob/smatch.c"
+                (("xlocale.h") "locale.h"))
+              ;; EBADEXEC is XNU-specific.
+              (substitute* "execute_cmd.c"
+                (("EBADEXEC") "ENOEXEC")))))))
+    (home-page "https://github.com/apple-oss-distributions/bash/")
+    (synopsis "Bash used on Apple MacOS systems")
+    (description "This is the version of Bash released on Apple MacOS systems")
+    (license license:gpl3+)))
-- 
2.41.0





             reply	other threads:[~2023-09-14  4:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-14  4:57 B. Wilson via Guix-patches via [this message]
2023-09-27 21:51 ` [bug#65931] [PATCH] gnu: Add apple-bash Ludovic Courtès
2023-09-28  0:09   ` B. Wilson via Guix-patches via
2023-10-05 12:43     ` bug#65931: " Ludovic Courtès

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=20230914045732.1010-1-elaexuotee@wilsonb.com \
    --to=guix-patches@gnu.org \
    --cc=65931@debbugs.gnu.org \
    --cc=elaexuotee@wilsonb.com \
    /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.