[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reference a store path of an input?

From: Nicolas Goaziou
Subject: Re: Reference a store path of an input?
Date: Fri, 17 Dec 2021 09:41:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)


Jim Newsome <> writes:

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


> 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
<> for addition

> ```
> (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:

  #~(list (string-append "-DCMAKE_EXTRA_INCLUDES=" #$glib "/include"))))

Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]