~ruther/guix-local

5b00f53526c6069061545045deaf150762e2eaac — Ludovic Courtès 13 years ago 0ec1af5
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.
1 files changed, 6 insertions(+), 4 deletions(-)

M guix/snix.scm
M guix/snix.scm => guix/snix.scm +6 -4
@@ 388,10 388,12 @@ location of DERIVATION."
                        (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.