mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-29 21:58:36 +02:00
glicid utils defined
This commit is contained in:
parent
00d0f4e011
commit
73c79f1748
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
(define-module (glicid utils))
|
||||
(define-module (glicid utils)
|
||||
#:use-module (guix packages)
|
||||
#:export (latest-version)
|
||||
)
|
||||
;; helper function
|
||||
;; return latest version of 2 packages
|
||||
|
||||
(define-public (latest-version v1 v2) (if (string> (package-version v1) (package-version v2)) v1 v2))
|
||||
(define (latest-version v1 v2) (if (string> (package-version v1) (package-version v2)) v1 v2))
|
||||
|
|
Loading…
Add table
Reference in a new issue