guix-devel
[Top][All Lists]
Advanced

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

Re: Version from file in a package


From: paul
Subject: Re: Version from file in a package
Date: Fri, 22 Sep 2023 15:11:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0

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 "/../..") "my-package-checkout"
  
  [...]

The current directory may not be where the VERSION file is.

giacomo


reply via email to

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