unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Unable to execute script while pulling a Guix channel?
@ 2024-07-14 11:14 Ashvith Shetty
  0 siblings, 0 replies; only message in thread
From: Ashvith Shetty @ 2024-07-14 11:14 UTC (permalink / raw)
  To: guix-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-14 11:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-14 11:14 Unable to execute script while pulling a Guix channel? Ashvith Shetty

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).