mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
snix: When unable to determine the version number, leave the URI unchanged.
* guix/snix.scm (snix-derivation->guix-package)[pretty-uri]: When VERSION is #f, return URI.
This commit is contained in:
parent
0ec1af59e5
commit
5b00f53526
1 changed files with 6 additions and 4 deletions
|
@ -388,10 +388,12 @@ (define (maybe-inputs guix-name inputs)
|
|||
(list 'quasiquote inputs))))))
|
||||
|
||||
(define (pretty-uri uri version)
|
||||
(match (factorize-uri uri version)
|
||||
((items ...)
|
||||
`(string-append ,@items))
|
||||
(x x)))
|
||||
(if version
|
||||
(match (factorize-uri uri version)
|
||||
((items ...)
|
||||
`(string-append ,@items))
|
||||
(x x))
|
||||
uri))
|
||||
|
||||
(define (license-variable license)
|
||||
;; Return the name of the (guix licenses) variable for LICENSE.
|
||||
|
|
Loading…
Reference in a new issue