unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Mekeor Melire <mekeor@posteo.de>
To: help-guix@gnu.org
Subject: How to replace %output with #$output?
Date: Mon, 21 Mar 2022 21:31:24 +0000	[thread overview]
Message-ID: <87zgljx9yn.fsf@posteo.de> (raw)

In the IRC-channel, I was told that the undocumented, magic %output
variable is deprecated. Instead, I should use #$output. But I couldn't
get this done. I always ran into strange errors.

How should I change the following snippet?

--8<---------------cut here---------------start------------->8---
    (arguments
      '(
         #:tests? #f ; no tests
         #:make-flags (list "CC=gcc")
         #:phases
         (modify-phases %standard-phases
             (delete 'configure)
             (add-after 'unpack 'patch-makefile
               (lambda _
                 (substitute* "Makefile"
                   (("/usr/local") %output)))))))
--8<---------------cut here---------------end--------------->8---

The whole file is available here: http://ix.io/3T71/scm


             reply	other threads:[~2022-03-21 21:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21 21:31 Mekeor Melire [this message]
2022-03-21 21:57 ` How to replace %output with #$output? Tobias Geerinckx-Rice
2022-03-22  7:26   ` Mekeor Melire
2022-03-22  7:59     ` Tobias Geerinckx-Rice
2022-03-22  8:24       ` Mekeor Melire
2022-03-22 16:26         ` Tobias Geerinckx-Rice
2022-03-22  8:16     ` Feng Shu
2022-03-22  8:51       ` Mekeor Melire

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=87zgljx9yn.fsf@posteo.de \
    --to=mekeor@posteo.de \
    --cc=help-guix@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.
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).