import: cpan: Propagate imported dependencies.
authorEric Bavier <bavier@member.fsf.org>
Sat, 28 Oct 2017 23:13:08 +0000 (18:13 -0500)
committerEric Bavier <bavier@member.fsf.org>
Sat, 28 Oct 2017 23:20:58 +0000 (18:20 -0500)
This is most often the need for perl module dependencies.

* guix/import/cpan.scm (cpan-module->sexp): 'inputs -> 'propagated-inputs.
* tests/cpan.scm ("cpan->guix-package"): Adjust accordingly.

guix/import/cpan.scm
tests/cpan.scm

index 6261e3e..15b121e 100644 (file)
@@ -242,7 +242,7 @@ META."
                        ;; have not yet had a need for cross-compiled perl
                        ;; modules, however, so we leave it out.
                        (convert-inputs '("configure" "build" "test")))
-       ,@(maybe-inputs 'inputs
+       ,@(maybe-inputs 'propagated-inputs
                        (convert-inputs '("runtime")))
        (home-page ,(string-append "http://search.cpan.org/dist/" name))
        (synopsis ,(assoc-ref meta "abstract"))
index 8900716..91e2cc6 100644 (file)
@@ -94,7 +94,7 @@
                                ('base32
                                 (? string? hash)))))
                    ('build-system 'perl-build-system)
-                   ('inputs
+                   ('propagated-inputs
                     ('quasiquote
                      (("perl-test-script" ('unquote 'perl-test-script)))))
                    ('home-page "http://search.cpan.org/dist/Foo-Bar")