this may be related (also see the discussion):
(current-filename) is #f when guix pull'ing
https://issues.guix.gnu.org/55464
i haven't yet double-checked Ludo's recommendation to use INCLUDE, which should
work, but it didn't for me. my current solution is this:
(define
Hi Reza,
I believe local-file should import (guix utils) and use
current-source-directory. Something like:
(define %cwd (current-source-directory))
(let ([...]
(version-file (string-append %cwd "/VERSION"))
[...]
(source (local-file (string-append %cwd "/../..")
? (or (git-predicate %source-dir) (const #t)))
(version-file "VERSION")
(version-from-file (call-with-input-file version-file get-string-all)))
(package
(name "my-package")
(version version-from-file)
(source (local-file "..