gnu: hurd: Install the UTF-8 motd.
authorLudovic Courtès <ludo@gnu.org>
Mon, 6 Apr 2020 12:58:19 +0000 (14:58 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 11 Apr 2020 17:22:26 +0000 (19:22 +0200)
* gnu/packages/hurd.scm (hurd)[arguments]: Add 'install-goodies' phase.

gnu/packages/hurd.scm

index 45e1b21..e5ad8e4 100644 (file)
@@ -409,6 +409,16 @@ fsysopts / --writable\n"))
                            (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"))