From 22b9734b67b8f5946e09ed28843a9af26f345945 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 11 Oct 2022 13:56:02 +0200 Subject: Revert "guix system: Remove unused 'read-operating-system' procedure." This reverts commit d11a432adffe9308eafec6b77cddd3145029109e. The 'read-operating-system' is used in Emacs-Guix. --- guix/scripts/system.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'guix') diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 4bcf789703..560f56408c 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -92,6 +92,7 @@ #:use-module (ice-9 match) #:use-module (rnrs bytevectors) #:export (guix-system + read-operating-system service-node-type shepherd-service-node-type)) @@ -107,6 +108,11 @@ (gnu services) (gnu system shadow)))) +;; Note: The procedure below is used in external projects such as Emacs-Guix. +(define (read-operating-system file) + "Read the operating-system declaration from FILE and return it." + (load* file %user-module)) + ;;; ;;; Installation. -- cgit v1.2.3