unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Abbé <gnu.bonfire@p.atriar.ch>
To: Saku Laesvuori <saku@laesvuori.fi>
Cc: help-guix@gnu.org
Subject: Re: Trying to create a .zshrc in guix home environment referencing a zsh plugin
Date: Sun, 21 Jan 2024 17:51:13 +0000	[thread overview]
Message-ID: <170585948233.8.8654404881504744379.252486561@p.atriar.ch> (raw)
In-Reply-To: <55kugerbdhlv6s3i57rb76jd2aje3at2njah7kyywjv534bn4z@dlyqj2bi53fp>

On Sunday, January 21st, 2024 at 1:10 PM, Saku Laesvuori <saku@laesvuori.fi> wrote:

> > [reformatted]
> > 
> > (zshrc
> > (list (computed-file
> > "zshrc"
> > #~(begin
> > (reduce string-append ""
> > (list "bindkey -e\n"
> > (format #f "source ~s/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh\n"
> > #$zsh-syntax-highlighting)
> > "eval \"$(direnv hook zsh)\"\n"
> > "eval \"$(zoxide init zsh)\"\n"))))))
> 
> 
> The gexp passed to computed-file should produce a file when built
> (evaluated)[1]. Your gexp doesn't create any files or directories, it just
> evaluates to a string. Try using mixed-text-file[2] instead.
> 
> It is not relevant to this error, but I think your path to
> zsh-syntax-highlighting.zsh is wrong. In my configuration it is
> "/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh".
> 
> [1]: https://guix.gnu.org/manual/devel/en/guix.html#index-computed_002dfile
> [2]: https://guix.gnu.org/manual/devel/en/guix.html#index-mixed_002dtext_002dfile
> 
> > And I receive following error:
> > 
> > ------------------------------------------
> > $ guix time-machine -C ./channels.scm -- home reconfigure config.scm
> > guix home: error: reference to invalid output 'out' of derivation '/gnu/store/2dqwm651a0p0vqwhpvsy7dn8zvx4n99x-zshrc.drv'
> > ------------------------------------------
> 
> 
> The error says that the derivation (created by computed-file) does not
> produce an output named out (because the gexp doesn't produce any
> outputs).

This makes sense. Thank you very much!

--
Abbé



      reply	other threads:[~2024-01-25 15:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-20 23:18 Trying to create a .zshrc in guix home environment referencing a zsh plugin A
2024-01-21 12:10 ` Saku Laesvuori
2024-01-21 17:51   ` Abbé [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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=170585948233.8.8654404881504744379.252486561@p.atriar.ch \
    --to=gnu.bonfire@p.atriar.ch \
    --cc=help-guix@gnu.org \
    --cc=saku@laesvuori.fi \
    /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.
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).