mirror of
https://gitlab.univ-nantes.fr/glicid-public/guix-glicid.git
synced 2025-04-30 06:08:37 +02:00
new-version of latest-version
This commit is contained in:
parent
aa7687e615
commit
3222b1469d
1 changed files with 10 additions and 1 deletions
|
@ -10,7 +10,16 @@
|
|||
#:export (transform-package)
|
||||
#:export (instead-of)
|
||||
)
|
||||
(define (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))
|
||||
|
||||
(define (latest-version v1 v2)
|
||||
|
||||
(case (version-compare (package-version v1) (package-version v2))
|
||||
((>) (v1))
|
||||
((=) (v1))
|
||||
((<) (v2))
|
||||
)
|
||||
)
|
||||
|
||||
(define gcc11-instead-of-gcc
|
||||
(package-input-rewriting `(
|
||||
|
|
Loading…
Add table
Reference in a new issue