build-system/gnu: Fix 'install' phase of 'gnu-dist'.
authorLudovic Courtès <ludo@gnu.org>
Thu, 18 Jun 2020 09:27:06 +0000 (11:27 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 18 Jun 2020 12:48:17 +0000 (14:48 +0200)
* guix/build/gnu-dist.scm (install-dist): Fix 2nd argument to
'for-each'.

guix/build/gnu-dist.scm

index ade3b42..fce1cd0 100644 (file)
   (apply invoke "make" dist-target make-flags))
 
 (define* (install-dist #:key outputs #:allow-other-keys)
-  (let* ((out      (assoc-ref outputs "out"))
-         (meta     (string-append out "/nix-support")) ; Hydra meta-data
-         (tarballs (find-files "." "\\.tar\\.")))
-    (mkdir out)
+  (let ((out (assoc-ref outputs "out")))
     (for-each (lambda (tarball)
-                (copy-file tarball (string-append out "/" tarball)))
-              out)
+                (install-file tarball out))
+              (find-files "." "\\.tar\\."))
     #t))
 
 (define %dist-phases