[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (current-filename) behaves differently in environment|build
From: |
Ludovic Courtès |
Subject: |
Re: (current-filename) behaves differently in environment|build |
Date: |
Mon, 08 Apr 2019 11:14:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
wldhx <address@hidden> skribis:
> Discovered following behaviour while setting up GNUnet CI:
>
> Given
>
> ./gnu/packages/a.scm:
> ...
> (source (local-file (dirname (current-filename))))
> ...
It’s enough to write:
(local-file ".." #:recursive? #t)
since ‘local-file’ already takes care of resolving the file name
relative to the current source file.
Does that work for you?
> export GUIX_PACKAGE_PATH=$PWD
>
> `(current-filename)` returns `#f` when evaluated via `guix environment`,
> while `guix build` does fine. Is this expected? Am I doing something wrong?
No, there shouldn’t be any difference.
Thanks, and apologies for the delay!
Ludo’.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: (current-filename) behaves differently in environment|build,
Ludovic Courtès <=