(Moving this to help-guix instead of guile-user.)
"N. Y." <[email protected]> writes: > (arguments > '(#:phases (modify-phases %standard-phases > (add-after 'unpack 'amend-version > (lambda _ > (substitute* "setup.py" > (("versioneer.get_version\\(\\)") > (string-append "\"" #$version "\""))))) You can only use #$ inside an expression starting with #~. This should work: --8<---------------cut here---------------start------------->8--- (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'amend-version (lambda _ (substitute* "setup.py" (("versioneer.get_version\\(\\)") (string-append "\"" #$version "\"")))))))) --8<---------------cut here---------------end--------------->8--- -- Ricardo
