From: Ashvith Shetty <ashvithshetty10@gmail.com>
To: guix-devel <guix-devel@gnu.org>
Subject: Unable to execute script while pulling a Guix channel?
Date: Sun, 14 Jul 2024 11:14:14 +0000 [thread overview]
Message-ID: <CA+n6Bx-uXC-Jpd1mqLsTjezfBU1z=K_PSvuTX614ZydBstLb-w@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1664 bytes --]
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))
```
[-- Attachment #2: Type: text/html, Size: 2041 bytes --]
reply other threads:[~2024-07-14 11:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+n6Bx-uXC-Jpd1mqLsTjezfBU1z=K_PSvuTX614ZydBstLb-w@mail.gmail.com' \
--to=ashvithshetty10@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.