civodul pushed a commit to branch wip-hurd-vm
in repository guix.

commit e9ecc68b646eb997af7484e7cf55d9d49483acd6
Author: Ludovic Courtès <[email protected]>
AuthorDate: Mon Apr 6 14:58:19 2020 +0200

    gnu: hurd: Install the UTF-8 motd.
    
    * gnu/packages/hurd.scm (hurd)[arguments]: Add 'install-goodies' phase.
---
 gnu/packages/hurd.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index 7c68d81..83a05dc 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -398,6 +398,16 @@ boot, since this cannot be done from GNU/Linux."
                            (patch-shebang file path))
                          (find-files (string-append out "/libexec")))
                #t)))
+         (add-after 'install 'install-goodies
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; Install additional goodies.
+             ;; TODO: Build & install *.msgids for rpctrace.
+             (let ((out (assoc-ref outputs "out")))
+               ;; Install the fancy UTF-8 motd.
+               (mkdir-p (string-append out "/etc"))
+               (copy-file "console/motd.UTF8"
+                          (string-append out "/etc/motd"))
+               #t)))
          (add-after 'install 'install-rc-file
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let* ((out  (assoc-ref outputs "out"))

Reply via email to