all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Andy Tai <atai@atai.org>
Cc: help-guix@gnu.org
Subject: Re: question on setting up guix.scm for project development
Date: Fri, 18 Nov 2022 17:53:26 +0100	[thread overview]
Message-ID: <87cz9k9pbt.fsf@gnu.org> (raw)
In-Reply-To: <CAJsg1E8Ay1v7=XYSQhCHDPZq5Ra9XpLbzf0G7o44d6Eh7m8Eiw@mail.gmail.com> (Andy Tai's message of "Sun, 13 Nov 2022 22:29:15 -0800")

Hi,

Andy Tai <atai@atai.org> skribis:

> ----guix.scm---
> (use-modules (guix packages)
>    ....)
>
> (define-public d2-0.1.4
>    (package
>        (name "d2")
>        (version "0.1.4")
>
>    ...
> )
>
>
> (define-public my-package
>    (package
>       (name "my-package")
>       (version "0.1")
>      ...
>
>
>      (input (list d1 d2-0.1.4 d3...)
>     ....
> ))
>
> my-package
>
> ---end guix.scm--
>
>
> and if I use
>
> guix shell -f -d ./guix.scm
>
> this does not seem to generate an environment that contains the new
> dependency, that is d2 version 0.1.4

‘guix shell -f guix.scm’ generates an environment that contains the
package returned by ‘guix.scm’.

Conversely, ‘guix shell -D -f guix.scm’ produces the development
environment of the package returned by ‘guix.scm’.

HTH!

Ludo’.


      parent reply	other threads:[~2022-11-18 16:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-14  6:29 question on setting up guix.scm for project development Andy Tai
2022-11-14 18:41 ` Fwd: " Andy Tai
2022-11-15  2:02   ` Pjotr Prins
2022-11-15  6:15   ` Julien Lepiller
2022-11-15 15:40     ` Andy Tai
2022-11-15 16:46       ` Julien Lepiller
2022-11-18 16:53 ` Ludovic Courtès [this message]

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=87cz9k9pbt.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=atai@atai.org \
    --cc=help-guix@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.