[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/11: Revert "guix system: Remove unused 'read-operating-system' proced
From: |
guix-commits |
Subject: |
03/11: Revert "guix system: Remove unused 'read-operating-system' procedure." |
Date: |
Tue, 11 Oct 2022 10:16:00 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 22b9734b67b8f5946e09ed28843a9af26f345945
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Oct 11 13:56:02 2022 +0200
Revert "guix system: Remove unused 'read-operating-system' procedure."
This reverts commit d11a432adffe9308eafec6b77cddd3145029109e.
The 'read-operating-system' is used in Emacs-Guix.
---
gnu/ci.scm | 1 +
guix/scripts/system.scm | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/gnu/ci.scm b/gnu/ci.scm
index 19a48bdbf1..884dd84469 100644
--- a/gnu/ci.scm
+++ b/gnu/ci.scm
@@ -38,6 +38,7 @@
#:use-module ((guix licenses)
#:select (gpl3+ license? license-name))
#:use-module ((guix utils) #:select (%current-system))
+ #:use-module ((guix scripts system) #:select (read-operating-system))
#:use-module ((guix scripts pack)
#:select (self-contained-tarball))
#:use-module (gnu bootloader)
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.
- branch master updated (f78cfcd7d3 -> 68d79a8b60), guix-commits, 2022/10/11
- 01/11: guix import: Add a blank line after each package definition., guix-commits, 2022/10/11
- 02/11: git: Factorize 'commit-id?' predicate., guix-commits, 2022/10/11
- 03/11: Revert "guix system: Remove unused 'read-operating-system' procedure.",
guix-commits <=
- 04/11: gnu: emacs-guix: Update to cf5b7a4., guix-commits, 2022/10/11
- 05/11: gnu: emacs-guix: Remove input labels., guix-commits, 2022/10/11
- 06/11: gnu: python-pydyf: Update to 0.3.0., guix-commits, 2022/10/11
- 10/11: gnu: profanity: Update to 0.13.0., guix-commits, 2022/10/11
- 07/11: gnu: gtkwave: Update to 3.3.113., guix-commits, 2022/10/11
- 09/11: gnu: libstrophe: Update to 0.12.2., guix-commits, 2022/10/11
- 11/11: gnu: Add libskk., guix-commits, 2022/10/11
- 08/11: gnu: mmg: Add dependency on Perl., guix-commits, 2022/10/11