On Sun, May 07, 2017 at 11:41:07PM +0200, Hartmut Goebel wrote: > * gnu/packages/android.scm (git-repo): New variable. Thanks! > + `(#:python ,python-2 If it only supports Python 2, can you say so in a comment? > + #:phases > + (modify-phases %standard-phases > + (replace 'build > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (repo-dir (string-append out "/share/" ,name))) > + (substitute* "repo" > + (("^repodir = '\\.repo'") > + (string-append "repodir = '" repo-dir "'")) > + (("^S_repo = 'repo'") "S_repo = '.'")) > + #t > + ))) For clarify, I think it should delete the build phase (since nothing is built here) and add a new phase for this substitution.