diff options
author | Ludovic Courtès <ludo@gnu.org> | 2016-03-22 14:58:59 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2016-03-23 00:23:12 +0100 |
commit | 6985335faaa23965887b62ce8123f8f12e352bd5 (patch) | |
tree | 60cdacc2ff16ce733531f7241075163513d43cd2 /guix/gexp.scm | |
parent | 8c321299c532e620c0d2327dd15acad3d6b4476c (diff) | |
download | gnu-guix-6985335faaa23965887b62ce8123f8f12e352bd5.tar gnu-guix-6985335faaa23965887b62ce8123f8f12e352bd5.tar.gz |
derivations: Add 'module->source-file-name'.
* guix/derivations.scm (module->source-file-name): New procedure.
(%imported-modules): Use it.
* guix/gexp.scm (imported-modules): Likewise.
Diffstat (limited to 'guix/gexp.scm')
-rw-r--r-- | guix/gexp.scm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/guix/gexp.scm b/guix/gexp.scm index 7cbc79c31c..c408c94c43 100644 --- a/guix/gexp.scm +++ b/guix/gexp.scm @@ -918,9 +918,7 @@ search path." ;; TODO: Determine the closure of MODULES, build the `.go' files, ;; canonicalize the source files through read/write, etc. (let ((files (map (lambda (m) - (let ((f (string-append - (string-join (map symbol->string m) "/") - ".scm"))) + (let ((f (module->source-file-name m))) (cons f (search-path* module-path f)))) modules))) (imported-files files #:name name #:system system |