unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Jim Newsome <jim@sporksmith.net>
Cc: help-guix@gnu.org
Subject: Re: Reference a store path of an input?
Date: Fri, 17 Dec 2021 09:41:26 +0100	[thread overview]
Message-ID: <871r2b62tl.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <f4269cb2-d5eb-90ef-2367-bbc4e122954c@sporksmith.net> (Jim Newsome's message of "Thu, 16 Dec 2021 21:20:22 -0600")

Hello,

Jim Newsome <jim@sporksmith.net> writes:

> I'm just getting started experimenting with guix and guile

Great!

> I'd like to add some explicit flags to the cmake invocation so that it
> knows where to find glib. What do I substitute in for "get-store-path" 
> below? Pointers to how I might have found the appropriate helper or
> approach on my own also appreciated.

You may want to read about G-Expressions in Guix manual. See also
<https://guix.gnu.org/fr/blog/2021/the-big-change/> for addition
insight.

> ```
> (define-public oniontrace
>   (package
>     (name "oniontrace")
>     (build-system cmake-build-system)
>     (inputs `(("glib", glib)))
>     (arguments
>       '(#:configure-flags
>          (list (string-append "-DCMAKE_EXTRA_INCLUDES="
>          (get-store-path   "glib") "/include"))))
> ...
> ```

I should be:

(arguments
 (list
  #:configure-flags
  #~(list (string-append "-DCMAKE_EXTRA_INCLUDES=" #$glib "/include"))))

Regards,
-- 
Nicolas Goaziou


  parent reply	other threads:[~2021-12-17  8:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-17  3:20 Reference a store path of an input? Jim Newsome
2021-12-17  8:40 ` Guillaume Le Vaillant
2021-12-18 15:24   ` Jim Newsome
2021-12-17  8:41 ` Nicolas Goaziou [this message]
2021-12-18 15:21   ` Jim Newsome

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=871r2b62tl.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=help-guix@gnu.org \
    --cc=jim@sporksmith.net \
    /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).