diff --git a/guix/import/cpan.scm b/guix/import/cpan.scm index 2ef02c43a428e42566450558272868374a388c6d..58c051e2832da72e1d3b8ff6692a95989632a5a6 100644 --- a/guix/import/cpan.scm +++ b/guix/import/cpan.scm @@ -131,7 +131,11 @@ (define (cpan-version meta) ;; version is sometimes not quoted in the module json, so it gets ;; imported into Guile as a number, so convert it to a string. (number->string version)) - (version version))) + (version + ;; Sometimes we get a "v" prefix. Strip it. + (if (string-prefix? "v" version) + (string-drop version 1) + version)))) (define (perl-package) "Return the 'perl' package. This is a lazy reference so that we don't