help-guix
[Top][All Lists]
Advanced

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

guix hash of source from git repository.


From: Dmitry Nikolaev
Subject: guix hash of source from git repository.
Date: Wed, 22 Feb 2017 00:19:35 +0300

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...?

Dmitry Nikolaev

reply via email to

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