diff options
author | Ian Denhardt <ian@zenhack.net> | 2014-10-18 22:03:42 -0400 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-10-20 15:32:54 +0200 |
commit | 29a7c98a422bf3b9503ac8375db2ab28ef2dfe32 (patch) | |
tree | 7fd9219e875e44fb6328b6f84994279e3504d34a /gnu/packages/backup.scm | |
parent | 38bf090e7c3952bb30707fe544987cccc85b8677 (diff) | |
download | guix-29a7c98a422bf3b9503ac8375db2ab28ef2dfe32.tar guix-29a7c98a422bf3b9503ac8375db2ab28ef2dfe32.tar.gz |
gnu: Add 'version-prefix' and 'version-major+minor'; use them.
The procedure version-prefix truncates a version string to a certain
number of components. version-major+minor is a special case of this,
which extracts the "major.minor" part of the string. Previously this
was handled by an expression common to several packages.
* guix/utils.scm (version-prefix, version-major+minor): New procedures
* gnu/packages/backup.scm (duplicity): Use version-major+minor.
* gnu/packages/cmake.scm (cmake): Likewise.
* gnu/packages/gnome.scm (libbonobo, libbonoboui): Likewise.
* gnu/packages/gnutls.scm (gnutls): Likewise.
* gnu/packages/mail.scm (gmime): Likewise.
* gnu/packages/mpd.scm (mpd): Likewise.
* gnu/packages/mpi.scm (openmpi): Likewise.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/backup.scm')
-rw-r--r-- | gnu/packages/backup.scm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 1aef75e05b..a634c9454e 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> +;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net> ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,6 +21,7 @@ #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) + #:use-module (guix utils) #:use-module (guix build utils) #:use-module (guix build-system gnu) #:use-module (guix build-system python) @@ -38,8 +40,7 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages rsync) #:use-module (gnu packages ssh) - #:use-module (gnu packages xml) - #:use-module (srfi srfi-1)) + #:use-module (gnu packages xml)) (define-public duplicity (package @@ -49,7 +50,7 @@ (origin (method url-fetch) (uri (string-append "https://code.launchpad.net/duplicity/" - (string-join (take (string-split version #\.) 2) ".") + (version-major+minor version) "-series/" version "/+download/duplicity-" version ".tar.gz")) (sha256 |