unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Rohleder <mike@rohleder.de>
To: 48159@debbugs.gnu.org
Cc: Michael Rohleder <mike@rohleder.de>
Subject: [bug#48159] [PATCH] gnu: pioneers: Patch path to beep.
Date: Sun,  2 May 2021 14:41:12 +0200	[thread overview]
Message-ID: <20210502124112.16882-1-mike@rohleder.de> (raw)

Fixes <https://issues.guix.gnu.org/47131>

* gnu/packages/games.scm (pioneers): Patch path to beep.
[inputs]: Add beep.
[arguments]: Add phase patch-beep-path.
---
 gnu/packages/games.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 3227b3e6fc..efdf4b4edb 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -4700,7 +4700,18 @@ are only two levels to play with, but they are very addictive.")
                (base32
                 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; Fixes https://issues.guix.gnu.org/47131.
+         (add-after 'unpack 'patch-beep-path
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "client/gtk/audio.c"
+               (("\"beep\"")
+                (string-append "\"" (assoc-ref inputs "beep") "/bin/beep\"")))
+             #t)))))
     (inputs `(("avahi" ,avahi)
+              ("beep" ,beep)
               ("gtk+" ,gtk+)
               ("librsvg" ,librsvg)))
     (native-inputs `(("intltool" ,intltool)
-- 
2.31.1





             reply	other threads:[~2021-05-02 12:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-02 12:41 Michael Rohleder [this message]
2021-05-03 16:03 ` bug#48159: [PATCH] gnu: pioneers: Patch path to beep 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

  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=20210502124112.16882-1-mike@rohleder.de \
    --to=mike@rohleder.de \
    --cc=48159@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 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).