[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/7] git-download: Add some helpers.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH 1/7] git-download: Add some helpers. |
Date: |
Tue, 03 Jan 2017 13:28:45 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
David Craven <address@hidden> skribis:
> * guix/git-download.scm (git-version, git-file-name): New variables.
> ---
> guix/git-download.scm | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/guix/git-download.scm b/guix/git-download.scm
> index 81d1d4fbf..c453aaa6d 100644
> --- a/guix/git-download.scm
> +++ b/guix/git-download.scm
> @@ -30,7 +30,9 @@
> git-reference-commit
> git-reference-recursive?
>
> - git-fetch))
> + git-fetch
> + git-version
> + git-file-name))
>
> ;;; Commentary:
> ;;;
> @@ -110,4 +112,10 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a
> generic name if #f."
> #:guile-for-build guile
> #:local-build? #t)))
>
> +(define (git-version version revision commit)
> + (string-append version "-" revision "." (string-take commit 7)))
> +
> +(define (git-file-name name version)
> + (string-append name "-" version "-checkout"))
Please add a docstring. OK with this change, thank you!
Ludo’.
- Re: [PATCH 4/7] gnu: Add idris-lightyear., (continued)
- Re: [PATCH 4/7] gnu: Add idris-lightyear., Ludovic Courtès, 2017/01/03
- Re: [PATCH 4/7] gnu: Add idris-lightyear., David Craven, 2017/01/03
- Re: [PATCH 4/7] gnu: Add idris-lightyear., Ludovic Courtès, 2017/01/03
- Re: [PATCH 4/7] gnu: Add idris-lightyear., David Craven, 2017/01/03
- Re: [PATCH 4/7] gnu: Add idris-lightyear., David Craven, 2017/01/03
- Re: [PATCH 4/7] gnu: Add idris-lightyear., Ludovic Courtès, 2017/01/05
[PATCH 6/7] gnu: Add idris-bifunctors., David Craven, 2017/01/02
[PATCH 7/7] gnu: Add idris-lens., David Craven, 2017/01/02
Re: [PATCH 1/7] git-download: Add some helpers.,
Ludovic Courtès <=