help-guix
[Top][All Lists]
Advanced

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

Re: Newbie: How to debug my custom packages? Is there something like Ema


From: Simon Tournier
Subject: Re: Newbie: How to debug my custom packages? Is there something like Emacs' edebug but for Guix packages?
Date: Fri, 07 Apr 2023 10:33:46 +0200

Hi,

On ven., 07 avril 2023 at 04:20, Rodrigo Morales <moralesrodrigo1100@gmail.com> 
wrote:

>   |    (build-system trivial-build-system)

Please note that the ’trivial-build-system’ is the less trivial build
system.  I think you need ’copy-build-system’ instead.

Roughly speaking, using this,

    mkdir path/to/test/folder
    edit path/to/test/folder/rime.scm

where rime.scm contains the block you provided.  Then my trial-error
loop looks like: 

    guix build -L path/to/test/folder rime-wubi-8105 -K

With the option ’-K’, it keeps the temporary build under
/tmp/guix-<something> but here it does not seem very useful.

Last, you can check with,

--8<---------------cut here---------------start------------->8---
$ tree $(guix build -L /tmp/foo rime-wubi-8105 --no-grafts)
/gnu/store/nqc3sfndq6665d0lfrb3h6j58d559j6a-rime-wubi-8105-1.0
└── share
    └── rime-data
        ├── wubi86_8105.dict.yaml
        └── wubi86_8105.schema.yaml
--8<---------------cut here---------------end--------------->8---


Hope that helps,
simon



reply via email to

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