all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Tournier <zimon.toutoune@gmail.com>
To: 72280@debbugs.gnu.org
Cc: Simon Tournier <zimon.toutoune@gmail.com>
Subject: [bug#72280] [PATCH] gnu: mawk: Add symlink to 'awk'.
Date: Wed, 24 Jul 2024 23:23:10 +0200	[thread overview]
Message-ID: <c3256d536ac16b48b91f36185cc18a62a6c36cd2.1721856143.git.zimon.toutoune@gmail.com> (raw)

Reported by Zack Weinberg.

* gnu/packages/gawk.scm (mawk)[arguments]: Modify phases to add symlink from
'mawk' to 'awk'.

Change-Id: I98e65bf895db9a5a3f36419574fcc21f92a979fc
---
 gnu/packages/gawk.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/gawk.scm b/gnu/packages/gawk.scm
index 16a4ca5b0a..94b5439841 100644
--- a/gnu/packages/gawk.scm
+++ b/gnu/packages/gawk.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2018, 2022 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2021, 2022 Marius Bakke <marius@gnu.org>
 ;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
+;;; Copyright © 2024 Simon Tournier <zimon.toutoune@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -149,6 +150,14 @@ (define-public mawk
                     (("^PATH=.*")
                      ""))))))
     (build-system gnu-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'symlink-awk
+            (lambda _
+              (with-directory-excursion (string-append #$output "/bin")
+                (symlink "mawk" "awk")))))))
     (synopsis "Text scanning and processing language")
     (description
      "@command{mawk} is an interpreter for the Awk programming language.

base-commit: d007b64356764f49677c78d82643f1125b5353b7
-- 
2.41.0





                 reply	other threads:[~2024-07-24 21:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=c3256d536ac16b48b91f36185cc18a62a6c36cd2.1721856143.git.zimon.toutoune@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=72280@debbugs.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 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.