[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stepping through Guix code (REPL)

From: Pjotr Prins
Subject: Stepping through Guix code (REPL)
Date: Tue, 23 Jun 2015 13:36:16 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

I am looking for a way to step through Guix code using Guile REPL.


I get

  While compiling expression:
  ERROR: no code for module (ice-9 debugger)


In REPL I can do something like 

  (define-module (gnu packages bioinformatics-test)
    #:use-module (gnu packages ruby)
    #:use-module (gnu packages bioinformatics)
    #:use-module (guix)
    #:use-module (guix build-system)
    :use-module (guix build git)
  (define s (open-connection))
  (git-fetch "some_source.git" "c003c1e" "dest_dir")

which fetches the git repo and unpacks it in dest_dir. Pretty cool.

But when it comes to the higher-level git-fetch in git-download.scm I
fail to run that. I am trying something like

  (define-module (gnu packages bioinformatics-test)
    #:use-module (gnu packages bioinformatics)
    #:use-module (guix)
    #:use-module (guix git-download)
    #:use-module (guix hash)
    #:use-module (guix base32)

  (define s (open-connection))
  (define ref (git-reference
                 (url "some_source.git")
                 (commit "c003c1e")

  (git-fetch ref 'sha256

Which does not give errors, but there is no result (supposedly it calls into
the earlier git-fetch). The monadic thing is beyond me, so can someone tell me
how to run this git-fetch procedure from REPL? :) It probably needs to be
called from build.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]