Re: Version from file in a package

2023-09-23 Thread Attila Lendvai
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

Re: Version from file in a package

2023-09-22 Thread paul
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 "/../..")

Version from file in a package

2023-09-22 Thread Reza Housseini
? (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 "..