[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
56/58: DRAFT system: examples: Add devel-hurd.tmpl.
From: |
guix-commits |
Subject: |
56/58: DRAFT system: examples: Add devel-hurd.tmpl. |
Date: |
Wed, 19 Jul 2023 03:00:53 -0400 (EDT) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit 729a760ad4b8cbbe22bb9f6929ce8ceeb9b7d0e0
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Fri Jun 5 09:18:35 2020 +0200
DRAFT system: examples: Add devel-hurd.tmpl.
For your hacking pleasure -- Not intended for review / merge just yet.
Try something like
./pre-inst-env guix system image --image-type=hurd-qcow2
--image-size=15G \
--no-offload gnu/system/examples/devel-hurd.tmpl
cp /gnu/store/...disk-image devel.img
guix shell qemu -- qemu-system-i386 -enable-kvm -m 4096 \
-device rtl8139,netdev=net0 \
-netdev user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222 \
-hda devel-hurd.img
ssh -p 10022 root@localhost
GUIX_PROFILE=/run/current-system/bootstrap-profile
source $GUIX_PROFILE/etc/profile
git clone git://git.savannah.gnu.org/guix
cd guix
./bootstrap
./configure --localstatedir=/var --sysconfdir=/etc --with-courage
make
Note that we don't have an ld-wrapper, so you need some ld.so and
LD_LIBRARY_PATH hackery for compiled binaries to run.
---
etc/substitutes/dezyne.org.pub | 6 +++
gnu/system/examples/devel-hurd.tmpl | 103 ++++++++++++++++++++++++++++++++++++
2 files changed, 109 insertions(+)
diff --git a/etc/substitutes/dezyne.org.pub b/etc/substitutes/dezyne.org.pub
new file mode 100644
index 0000000000..2320d8828b
--- /dev/null
+++ b/etc/substitutes/dezyne.org.pub
@@ -0,0 +1,6 @@
+(public-key
+ (ecc
+ (curve Ed25519)
+ (q #32F730EA9AC64DD32D6BE661774ED3FF99D931027AD0115F1C5925C6CE724BA2#)
+ )
+)
diff --git a/gnu/system/examples/devel-hurd.tmpl
b/gnu/system/examples/devel-hurd.tmpl
new file mode 100644
index 0000000000..49d2cb8b41
--- /dev/null
+++ b/gnu/system/examples/devel-hurd.tmpl
@@ -0,0 +1,103 @@
+;; -*-scheme-*-
+
+;; This is an operating system configuration template for a "bare bones
+;; development" setup, with no X11 display server.
+
+;; To build a disk image for a virtual machine, do
+;;
+;; ./pre-inst-env guix system image --image-type=hurd-qcow2 --image-size=6G \
+;; --no-offload gnu/system/examples/devel-hurd.tmpl
+;;
+;; You may run it like so
+;;
+;; cp /gnu/store/.../disk-image devel-hurd.img
+;; guix shell qemu -- qemu-system-i386 -enable-kvm -m 4096 \
+;; -device rtl8139,netdev=net0 \
+;; -netdev user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222 \
+;; -hda devel-hurd.img
+;;
+;; and use it like
+;;
+;; ssh -p 10022 root@localhost
+;; guix build -e '(@@ (gnu packages commencement) gnu-make-boot0)'
+;;
+;; or even (if you use --image-size=3G)
+;;
+;; guix build hello
+;;
+;; Building Guix
+;;
+;; GUIX_PROFILE=/run/current-system/bootstrap-profile
+;; source $GUIX_PROFILE/etc/profile
+;; git clone git://git.savannah.gnu.org/guix
+;; cd guix
+;; ./bootstrap
+;; ./configure --localstatedir=/var --sysconfdir=/etc --with-courage
+;; make
+
+(use-modules (srfi srfi-1)
+ (ice-9 match)
+ (gnu)
+ (gnu system hurd)
+ (guix packages)
+ (guix store))
+(use-service-modules ssh virtualization)
+(use-package-modules base compression file gawk gdb hurd less m4
+ package-management ssh version-control)
+
+(define (input->package input)
+ "Return the INPUT as package, or #f."
+ (match input
+ ((label (and (? package?) package))
+ package)
+ ((label (and (? package?) package . output))
+ (cons package output))
+ (_ #f)))
+
+(define guix-packages
+ (filter-map input->package
+ (fold alist-delete (package-direct-inputs guix)
+ '("glibc-utf8-locales" "graphviz" "po4a"))))
+
+(define %hurd-devel-os
+ (operating-system
+ (inherit %hurd-vm-operating-system)
+ (host-name "guixydevel")
+ (timezone "Europe/Berlin")
+ (file-systems (cons (file-system
+ (device (file-system-label "hurd"))
+ (mount-point "/")
+ (type "ext2"))
+ %base-file-systems))
+ (swap-devices (list (swap-space
+ (target "/swapfile"))))
+ (users (cons (user-account
+ (name "guix")
+ (group "users")
+ (supplementary-groups '("wheel")))
+ %base-user-accounts))
+ (packages (cons*
+ gdb-minimal
+ git-minimal
+ gnu-make
+ ;;(list guix "debug")
+ m4
+ openssh-sans-x
+ (append
+ guix-packages
+ %base-packages/hurd)))
+ (services (cons*
+ (modify-services (operating-system-user-services
+ %hurd-vm-operating-system)
+ (guix-service-type
+ config =>
+ (guix-configuration
+ (inherit config)
+ (authorized-keys
+ (cons
+ (local-file "dezyne.org.pub")
+ %default-authorized-guix-keys))
+ (substitute-urls (cons "http://dezyne.org:8181"
+ %default-substitute-urls)))))))))
+
+%hurd-devel-os
- 01/58: Revert "gnu: libunistring: Fix make check for the Hurd.", (continued)
- 01/58: Revert "gnu: libunistring: Fix make check for the Hurd.", guix-commits, 2023/07/19
- 12/58: gnu: mpfr: Skip failing test on the Hurd., guix-commits, 2023/07/19
- 22/58: gnu: e2fsprogs: Skip failing tests on the Hurd., guix-commits, 2023/07/19
- 23/58: gnu: parted: Disable tests for the Hurd., guix-commits, 2023/07/19
- 24/58: gnu: libpaper: Disable tests for the Hurd., guix-commits, 2023/07/19
- 27/58: gnu: tcsh: Skip substitution tests on the Hurd., guix-commits, 2023/07/19
- 20/58: gnu: git: Skip failing test on the Hurd., guix-commits, 2023/07/19
- 32/58: gnu: doxygen: Fix build for the Hurd., guix-commits, 2023/07/19
- 34/58: gnu: guile-git: Skip http proxy test on the Hurd., guix-commits, 2023/07/19
- 02/58: gnu: guile: Skip hanging and failing pipe tests on the Hurd., guix-commits, 2023/07/19
- 56/58: DRAFT system: examples: Add devel-hurd.tmpl.,
guix-commits <=
- 48/58: system: hurd: Add procps to %base-packages/hurd., guix-commits, 2023/07/19
- 55/58: DRAFT hurd-boot: Support second boot., guix-commits, 2023/07/19
- 17/58: gnu: libgcrypt: Skip hanging benchmark tests on the Hurd., guix-commits, 2023/07/19
- 11/58: gnu: python: Support native build on the Hurd., guix-commits, 2023/07/19
- 25/58: gnu: openssl-1.1: Fix shared build for the Hurd., guix-commits, 2023/07/19
- 31/58: gnu: cmake-minimal: Skip tests on the Hurd., guix-commits, 2023/07/19
- 36/58: gnu: harfbuzz: Support build for the Hurd., guix-commits, 2023/07/19
- 37/58: gnu: pango: Support build for the Hurd., guix-commits, 2023/07/19
- 43/58: gnu: hurd: Support native build on the Hurd., guix-commits, 2023/07/19
- 44/58: gnu: guix: Disable some test on 32bit., guix-commits, 2023/07/19