all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to replace %output with #$output?
@ 2022-03-21 21:31 Mekeor Melire
  2022-03-21 21:57 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 8+ messages in thread
From: Mekeor Melire @ 2022-03-21 21:31 UTC (permalink / raw)
  To: help-guix

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-03-22 16:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-21 21:31 How to replace %output with #$output? Mekeor Melire
2022-03-21 21:57 ` 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

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.