[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) |
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