unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Catonano <catonano@gmail.com>
To: Leo Famulari <leo@famulari.name>
Cc: Dmitry Nikolaev <cameltheman@gmail.com>, help-guix <help-guix@gnu.org>
Subject: Re: guix hash of source from git repository.
Date: Wed, 22 Feb 2017 09:23:03 +0100	[thread overview]
Message-ID: <CAJ98PDwesUAMK8fN6Uuhn=X0LW4L1Z7UeGATX=5awT9Ng3CZHg@mail.gmail.com> (raw)
In-Reply-To: <20170221221733.GB18231@jasmine>

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

2017-02-21 23:17 GMT+01:00 Leo Famulari <leo@famulari.name>:

> On Wed, Feb 22, 2017 at 12:19:35AM +0300, Dmitry Nikolaev wrote:
> > When writing package definition, what if I download sources from git
> > repository? For example:
> >
> > (define-public libwebsockets
> >   (package
> >     (name "libwebsockets")
> >     (version "1.3")
> >     (source (origin
> >               ;; The project does not publish tarballs, so we have to
> take
> >               ;; things from Git.
> >               (method git-fetch)
> >               (uri (git-reference
> >                     (url "git://git.libwebsockets.org/libwebsockets")
> >                     (commit (string-append "v" version
> >                                            "-chrome37-firefox30"))))
> >               (sha256
> >                (base32
> >                 "12fqh2d2098mgf0ls19p9lzibpsqhv7mc5rn1yvrbfnazmcr40g4"))
> >               (file-name (string-append name "-" version))))
> > ...
> >
> > How do I calculate this 12fqh2d...?
>
> Clone the Git repository in the normal way, check out the Git commit you
> want to base the Guix package on, and then do this:
>
> $ guix hash --recursive --exclude-vcs path/to/git-repo
>
> This is explained in the manual, section Invoking guix hash:
>
> https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-hash.html
>
>

I apologize for the off the mark suggestion

I thought it was just lame, I didn't consider it had even more shortcomings

[-- Attachment #2: Type: text/html, Size: 2489 bytes --]

      reply	other threads:[~2017-02-22  8:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-21 21:19 guix hash of source from git repository Dmitry Nikolaev
2017-02-21 21:25 ` Catonano
2017-02-21 21:56   ` ng0
2017-02-21 22:21     ` Leo Famulari
2017-03-06 10:55   ` Ludovic Courtès
2017-02-21 22:17 ` Leo Famulari
2017-02-22  8:23   ` Catonano [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='CAJ98PDwesUAMK8fN6Uuhn=X0LW4L1Z7UeGATX=5awT9Ng3CZHg@mail.gmail.com' \
    --to=catonano@gmail.com \
    --cc=cameltheman@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=leo@famulari.name \
    /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).