all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: iyzsong@member.fsf.org (宋文武)
To: b0f0 <b0f0@posteo.si>
Cc: help-guix@gnu.org
Subject: Re: Writing and Bulding emacs-weechat package: In procedure url-fetch, Invalid keyword
Date: Sat, 01 Jun 2019 16:41:10 +0800	[thread overview]
Message-ID: <87pnnxwvdl.fsf@member.fsf.org> (raw)
In-Reply-To: <c292dbf1bc2793f1d2307d8f4cc6b426@posteo.net> (b0f0's message of "Fri, 31 May 2019 01:29:49 +0200")

b0f0 <b0f0@posteo.si> writes:

> Hello Guix !
> (This is my first mail to a newsgroup. )

Welcome!
(This is a mailing list, a newsgroup should be accessed via NNTP instead.)

> I would like to package the emacs-weechat package.
> I run this command in my terminal:
>
> $guix import elpa -a melpa emacs-weechat
>
> I put the output in to a emacs-weechat.scm file
> and then I modified the output like this (everything below this line
> is a emacs-weechat.scm):
>
> ;;(define-module (gnu packages emacs-weechat)
> ;;	       #:use-module (guix packages)
> ;;	       #:use-module (guix build download)
> ;;	       #:use-module (guix build-system emacs)
> ;;               #:use-module (gnu packages emacs-xyz))
> (use-modules (guix packages)
> 	     (guix download)
> 	     (guix git-download)
> 	     (guix utils)
>              (guix build download)

You don't need ‘(guix build download)’, and it exports another
‘url-fetch’ proceduce which cause errors here…

>  	     (guix build-system emacs)
> 	     (gnu packages emacs-xyz))
>
> (package
>   (name "emacs-weechat")
>   (version "20190520.1551")
>   (source
>     (origin
>       (method url-fetch)
>       (uri (string-append
> 	     "http://melpa.org/packages/weechat-"
> 	     version
> 	     ".tar"))
>       (sha256
> 	(base32
> 	  "143bjyrfz37ihmpkrbr668pn0z1017pjzb1d7hmqrr518slg7a"))))
>   (build-system emacs-build-system)
>   (propagated-inputs
>     `(("emacs-s" ,emacs-s)
>       ("emacs-tracking" ,emacs-tracking)))
>   (home-page "https://github.com/the-kenny/weechat.el")
>   (synopsis "Chat via WeeChat's relay protocol in Emacs")
>   (description "This package provides a way to chat via WeeChat's
> relay protocol in Emacs. Please see README.org on how to use it.")
>   (license #f))
>
>
> I read the manual but I am stuck, in terminal I run this comand:
> $guix build --file=emacs-weechat.scm
>
> Backtrace:
> In guix/store.scm:
>    623:10 19 (call-with-store _)
> In guix/scripts/build.scm:
>    911:26 18 (_ #<store-connection 256.99 16adae0>)
> In ice-9/boot-9.scm:
>     829:9 17 (catch _ _ #<procedure 2c2df20 at ice-9/boot-9.scm:104…> …)
> In guix/ui.scm:
>     495:6 16 (_)
> In guix/scripts/build.scm:
>     876:5 15 (_)
> In srfi/srfi-1.scm:
>    679:15 14 (append-map _ _ . _)
>    592:17 13 (map1 ("x86_64-linux"))
>    679:15 12 (append-map _ _ . _)
>    592:17 11 (map1 (#<package emacs-weechat@20190520.1551 /home/sht…>))
> In guix/scripts/build.scm:
>    835:18 10 (_ _)
> In guix/packages.scm:
>    936:16  9 (cache! #<weak-table 297/443> #<package emacs-weechat@…> …)
>   1255:22  8 (thunk)
>   1188:25  7 (bag->derivation #<store-connection 256.99 16adae0> #<…> …)
> In srfi/srfi-1.scm:
>    592:29  6 (map1 (("emacs" #<package emacs-minimal@26.2 gnu/p…>) …))
>    592:17  5 (map1 (("source" #<origin "https://melpa.org/packa…>) …))
> In ice-9/boot-9.scm:
>     829:9  4 (catch srfi-34 #<procedure 4144930 at guix/packages.sc…> …)
> In guix/packages.scm:
>   1003:18  3 (_)
> In guix/store.scm:
>   1794:24  2 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
>   1667:13  1 (_ _)
> In guix/build/download.scm:
>     741:0  0 (url-fetch _ _ #:timeout _ #:verify-certificate? _ # _ # …)
>
> guix/build/download.scm:741:0: In procedure url-fetch:
> Invalid keyword: #vu8(234 60 170 81 40 57 227 10 79 11 235 203 123 2 8
> 31 216 139 140 201 43 207 91 97 60 227 187 236 229 26 36)
>
> Isn't url-fetch provided with 'guix download' module ?

Yes, and remove ‘(guix build download)’ does the right thing for me.

Have a good day :-)

      reply	other threads:[~2019-06-01  8:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-30 23:29 Writing and Bulding emacs-weechat package: In procedure url-fetch, Invalid keyword b0f0
2019-06-01  8:41 ` 宋文武 [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=87pnnxwvdl.fsf@member.fsf.org \
    --to=iyzsong@member.fsf.org \
    --cc=b0f0@posteo.si \
    --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.