[Top][All Lists]

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

Re: debugging %build-inputs

From: (
Subject: Re: debugging %build-inputs
Date: Thu, 06 Oct 2022 07:40:31 +0100

On Thu Oct 6, 2022 at 2:35 AM BST, jgart wrote:
>     (arguments
>      `(#:configure-flags
>        (list (string-append "--with-tcl="
>                             (assoc-ref %build-inputs "tcl")
>                             "/lib")    ^^^^^^^^^^^^
>              (string-append "--with-tk="
>                             (assoc-ref %build-inputs "tk")
>                             "/lib"))))

``%build-inputs'' is an **obsolete** variable that provides an
alist of inputs to output paths:

  `(("gcc" . "/gnu/store/...-gcc-...")
    ("make" . "/gnu/store/...-make-...")
    ("tcl" . "/gnu/store/...-tcl-...")
    ("tk" .  "/gnu/store/...-tk-..."))

et cetera.  So, it should just contain a map of the label of each
input to its compiled store path.

Usage of ``(assoc-ref %build-inputs LABEL)'' is basically the same
as usage of ``#$(this-package-input LABEL)'' or
``#$(this-package-input LABEL)''.

Regarding the debugging question: no, I don't believe there is a
way to start a REPL in the build environment.

    -- (

reply via email to

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