unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Saku Laesvuori <saku@laesvuori.fi>
To: A <gnu.bonfire@p.atriar.ch>
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 14:10:06 +0200	[thread overview]
Message-ID: <55kugerbdhlv6s3i57rb76jd2aje3at2njah7kyywjv534bn4z@dlyqj2bi53fp> (raw)
In-Reply-To: <170579271812.10.1715248237828604493.252163807@p.atriar.ch>

[-- Attachment #1: Type: text/plain, Size: 1528 bytes --]

> [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).

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2024-01-21 12:10 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 [this message]
2024-01-21 17:51   ` Abbé

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=55kugerbdhlv6s3i57rb76jd2aje3at2njah7kyywjv534bn4z@dlyqj2bi53fp \
    --to=saku@laesvuori.fi \
    --cc=gnu.bonfire@p.atriar.ch \
    --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.
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).