[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guix hash of source from git repository.

From: Catonano
Subject: Re: guix hash of source from git repository.
Date: Tue, 21 Feb 2017 22:25:35 +0100

Hi Dmitry,

2017-02-21 22:19 GMT+01:00 Dmitry Nikolaev <address@hidden>:
When writing package definition, what if I download sources from git repository? For example:

(define-public libwebsockets
    (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://")
                    (commit (string-append "v" version
              (file-name (string-append name "-" version))))

How do I calculate this 12fqh2d...?

Dmitry Nikolaev

You clone the git repository locally, then you use 'guix hash' as explained in this page of the manual (the option you want to use is "--recursive")

Another option is to try to build the package with the wrong hash, wait for the error message and copy the right hash from within the error message itself. Lame, but hey

Hope this helps !



reply via email to

[Prev in Thread] Current Thread [Next in Thread]