now use a function…

This commit is contained in:
Yann Dupont 2021-11-01 23:16:44 +01:00
parent 5cde355a83
commit f2c197c92c

View file

@ -92,6 +92,9 @@
)
;; helper function
(define (latest-version v1 v2) (if (string> (package-version v1) (package-version v2)) v1 v2))
;;;;;;;;
@ -118,8 +121,7 @@
(define-public glicid-keepalived
(package
(inherit (if (string> (package-version keepalived) (package-version gnu:keepalived)) keepalived gnu:keepalived))
(inherit (latest-version keepalived gnu:keepalived))
(name "glicid-keepalived")
(arguments
`(#:configure-flags