[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
36/62: gnu: hurd: Install a BDF font.
From: |
guix-commits |
Subject: |
36/62: gnu: hurd: Install a BDF font. |
Date: |
Sat, 11 Apr 2020 11:35:52 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit 2b46fd2567f960384bdc37c0e7be860d67bb2696
Author: Ludovic Courtès <address@hidden>
AuthorDate: Tue Apr 7 16:55:29 2020 +0200
gnu: hurd: Install a BDF font.
* gnu/packages/hurd.scm (unifont): New variable.
(hurd)[arguments]: In 'install-goodies' phase, install
OUT/share/hurd/vga-system.bdf.
[inputs]: Add UNIFONT.
---
gnu/packages/hurd.scm | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index 620faf3..f7c0637 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -292,6 +292,17 @@ Hurd-minimal package which are needed for both glibc and
GCC.")
(description
"GNU Mach is the microkernel upon which a GNU Hurd system is based.")))
+(define unifont
+ ;; GNU Unifont, <http://gnu.org/s/unifont>.
+ ;; Used the the VGA driver of the Hurd's console client.
+ (origin
+ (method url-fetch)
+ (uri
+
"http://unifoundry.com/pub/unifont-7.0.06/font-builds/unifont-7.0.06.bdf.gz")
+ (sha256
+ (base32
+ "0p2vhnc18cnbmb39vq4m7hzv4mhnm2l0a2s7gx3ar277fwng3hys"))))
+
(define (hurd-rc-script)
"Return a script to be installed as /libexec/rc in the 'hurd' package. The
script takes care of installing the relevant passive translators on the first
@@ -413,14 +424,23 @@ fsysopts / --writable\n"))
(find-files (string-append out "/libexec")))
#t)))
(add-after 'install 'install-goodies
- (lambda* (#:key outputs #:allow-other-keys)
+ (lambda* (#:key inputs outputs #:allow-other-keys)
;; Install additional goodies.
;; TODO: Build & install *.msgids for rpctrace.
- (let ((out (assoc-ref outputs "out")))
+ (let* ((out (assoc-ref outputs "out"))
+ (datadir (string-append out "/share/hurd")))
;; Install the fancy UTF-8 motd.
(mkdir-p (string-append out "/etc"))
(copy-file "console/motd.UTF8"
(string-append out "/etc/motd"))
+
+ ;; Install the BDF font for use by the console client.
+ (copy-file (assoc-ref inputs "unifont")
+ "unifont.gz")
+ (invoke "gunzip" "unifont.gz")
+ (mkdir-p datadir)
+ (copy-file "unifont"
+ (string-append datadir "/vga-system.bdf"))
#t)))
(add-after 'install 'install-rc-file
(lambda* (#:key inputs outputs #:allow-other-keys)
@@ -445,6 +465,7 @@ fsysopts / --writable\n"))
("libgcrypt" ,libgcrypt) ;for /hurd/random
("libdaemon" ,libdaemon) ;for /bin/console --daemonize
+ ("unifont" ,unifont)
;; Tools for the /libexec/* scripts.
("bash-minimal" ,bash-minimal)
- 21/62: gnu: hurd: Install the UTF-8 motd., (continued)
- 21/62: gnu: hurd: Install the UTF-8 motd., guix-commits, 2020/04/11
- 25/62: linux-boot: 'make-essential-device-nodes' root parameter is optional., guix-commits, 2020/04/11
- 34/62: gnu: hurd: Add dependency on libgcrypt., guix-commits, 2020/04/11
- 35/62: gnu: hurd: Add dependency on libdaemon., guix-commits, 2020/04/11
- 39/62: gnu: guile-json: Cross-build fix., guix-commits, 2020/04/11
- 62/62: gnu: guix: Run `make update-guix-package'., guix-commits, 2020/04/11
- 22/62: system: hurd: Create /etc/{hostname,motd,login} and /root., guix-commits, 2020/04/11
- 30/62: vm: Make the device node procedure a parameter., guix-commits, 2020/04/11
- 32/62: system: hurd: Add guix., guix-commits, 2020/04/11
- 38/62: system: hurd: Add openssh, shepherd., guix-commits, 2020/04/11
- 36/62: gnu: hurd: Install a BDF font.,
guix-commits <=
- 46/62: system: hurd: Add guile-candy., guix-commits, 2020/04/11
- 47/62: system: hurd: Ensure propagated inputs are also cross-built., guix-commits, 2020/04/11
- 51/62: gnu: guix: Cross-build fixup for wrap-program., guix-commits, 2020/04/11
- 52/62: gnu: guix: Add dependency on `hurd' when building for the Hurd., guix-commits, 2020/04/11
- 50/62: gnu: Fix typo., guix-commits, 2020/04/11
- 58/62: HACK build.sh, 2GiB disk., guix-commits, 2020/04/11
- 59/62: Revert "compile: Run the load phase within 'with-target'.", guix-commits, 2020/04/11
- 24/62: vm: Preserve file permissions on /dev., guix-commits, 2020/04/11
- 29/62: linux-boot: Add 'make-hurd-device-nodes'., guix-commits, 2020/04/11
- 31/62: gnu: guix: Fix cross-compilation., guix-commits, 2020/04/11