Leo Famulari <l...@famulari.name> writes: > That sounds good to me. There was some discussion of how much of the > hash to keep here: > http://lists.gnu.org/archive/html/guix-devel/2015-12/msg00136.html > > I like this method that I've seen in some of the packages, because it > keeps the version tidy while preserving the full hash: > > --8<---------------cut here---------------start------------->8--- > (define-public hello > (let ((commit "e8e46123cfe62170a2f7f79db6b471b66ae36947")) > (package > (name "hello") > (version (string-append "2.10-1" (string-take commit 8))) > (source (origin > (method git-fetch) > (uri (git-reference > (url "git://git.sv.gnu.org/hello.git") > (commit commit))) > (sha256 > [...] > --8<---------------cut here---------------end--------------->8---
I like this approach (though I’ve been taking 9 characters of the commit ;)). ~~ Ricardo