Hello,
I've been trying to create a mock project that uses Guix not just to build
with Guix, but also to turn it into a channel. So far, I've been successful
with building the repository with Guix, but I'm having trouble using it as
a channel. I am trying to execute a `git-version-gen` command, so all I
have to do is set the version using git tag. The link of the repository is
available here <https://codeberg.org/Ashvith/kilo/src/branch/test-branch>.

Here's how the code snippet looks like:
```scm
(define-module (kilo)
  ...
  #:use-module (ice-9 popen)
  #:use-module (ice-9 rdelim))

(define vcs-file?
  (or (git-predicate (dirname (dirname (current-source-directory))))
      (const #t)))

(define git-version-gen
  (let* ((port (open-input-pipe "./build-aux/git-version-gen
.tarball-version"))
         (str (read-line port)))
    (close-pipe port) str))

(define-public kilo
  (package
    (name "kilo")
    (version git-version-gen)
    (source
     (local-file "../.."
                 "kilo"
                 #:select? vcs-file?
                 #:recursive? #t))
    (build-system gnu-build-system)
    ... )
```

Here's the channel for the same:
```scm
(channel
  (name 'kilo)
  (branch "test-branch")
  (url "https://codeberg.org/Ashvith/kilo";))
```

And here's the error when I try to `guix pull`:
```console
$ zcat /var/log/guix/drvs/fz/srq8g3lam4hi8daa095n6c7hpmyxkk-kilo.drv.gz
(repl-version 0 1 1)
/gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/bash:
line 1: ./build-aux/git-version-gen: No such file or directory
(exception misc-error (value #f) (value "no code for module ~S") (value
((guile-package))) (value #f))
```

Reply via email to