diff options
-rw-r--r-- | guix/build/texlive-build-system.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/guix/build/texlive-build-system.scm b/guix/build/texlive-build-system.scm index 4f3938213f..eeb23c4645 100644 --- a/guix/build/texlive-build-system.scm +++ b/guix/build/texlive-build-system.scm @@ -207,8 +207,10 @@ runfile to replace. If a file has no matching runfile, it is ignored." (let ((doc-dir (string-append (or doc out) "/share/texmf-dist/doc"))) (mkdir-p doc-dir) (copy-recursively "doc" doc-dir))) - ;; Handle runfiles. - (let ((texmf (string-append (assoc-ref outputs "out") "/share/texmf-dist"))) + ;; Install runfiles. The package may not contain any, though. Create + ;; #$output anyway to handle this situation gracefully. + (mkdir-p out) + (let ((texmf (string-append out "/share/texmf-dist"))) (for-each (lambda (root) (let ((destination (string-append texmf "/" root))) (mkdir-p destination) |