From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Nikolaev Subject: guix hash of source from git repository. Date: Wed, 22 Feb 2017 00:19:35 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11391442d4fc39054910efb3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgHqV-0001mM-Cv for help-guix@gnu.org; Tue, 21 Feb 2017 16:19:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgHqU-0004aq-9z for help-guix@gnu.org; Tue, 21 Feb 2017 16:19:39 -0500 Received: from mail-qt0-x22d.google.com ([2607:f8b0:400d:c0d::22d]:36854) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgHqU-0004aa-5B for help-guix@gnu.org; Tue, 21 Feb 2017 16:19:38 -0500 Received: by mail-qt0-x22d.google.com with SMTP id k15so122880554qtg.3 for ; Tue, 21 Feb 2017 13:19:36 -0800 (PST) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix --001a11391442d4fc39054910efb3 Content-Type: text/plain; charset=UTF-8 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 --001a11391442d4fc39054910efb3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+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