[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
79/80: system: Introduce the os-release file.
From: |
guix-commits |
Subject: |
79/80: system: Introduce the os-release file. |
Date: |
Sat, 2 Oct 2021 06:56:19 -0400 (EDT) |
mothacehe pushed a commit to branch core-updates-frozen
in repository guix.
commit 245602604455ad9f48571af1fc9ecd6493f6e290
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Tue Sep 28 10:19:26 2021 +0000
system: Introduce the os-release file.
* gnu/system.scm (os-release): New procedure.
(operating-system-etc-service): Use it.
---
gnu/system.scm | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/gnu/system.scm b/gnu/system.scm
index 69f2ae5..80faaf9 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -852,6 +852,19 @@ syntactically correct."
"--check" "--file" #$file)
(copy-file #$file #$output)))))
+(define (os-release)
+ (plain-file "os-release"
+ "\
+NAME=\"Guix System\"
+ID=guix
+PRETTY_NAME=\"Guix System\"
+LOGO=guix-icon
+HOME_URL=\"https://guix.gnu.org\"
+DOCUMENTATION_URL=\"https://guix.gnu.org/en/manual\"
+SUPPORT_URL=\"https://guix.gnu.org/en/help\"
+BUG_REPORT_URL=\"https://lists.gnu.org/mailman/listinfo/bug-guix\"
+"))
+
(define* (operating-system-etc-service os)
"Return a <service> that builds a directory containing the static part of
the /etc directory."
@@ -957,7 +970,8 @@ then
source /run/current-system/profile/etc/profile.d/bash_completion.sh
fi\n")))
(etc-service
- `(("services" ,(file-append net-base "/etc/services"))
+ `(("os-release" ,#~#$(os-release))
+ ("services" ,(file-append net-base "/etc/services"))
("protocols" ,(file-append net-base "/etc/protocols"))
("rpc" ,(file-append net-base "/etc/rpc"))
("login.defs" ,#~#$login.defs)
- 51/80: gnu: libgdata: Update to 0.18.1., (continued)
- 51/80: gnu: libgdata: Update to 0.18.1., guix-commits, 2021/10/02
- 54/80: gnu: gnome-settings-daemon: Update to 40.0.1., guix-commits, 2021/10/02
- 58/80: gnu: gnome-initial-setup: Update to 40.4., guix-commits, 2021/10/02
- 59/80: gnu: gnome-control-center: Update to 40.1., guix-commits, 2021/10/02
- 60/80: gnu: accountsservice: Update to 0.6.55., guix-commits, 2021/10/02
- 63/80: gnu: gnome-online-miners: Fix build., guix-commits, 2021/10/02
- 64/80: gnu: gnome-photos: Update to 40.0., guix-commits, 2021/10/02
- 65/80: gnu: gnome: Add gnome-music and gnome-photo., guix-commits, 2021/10/02
- 68/80: gnu: gnome-mines: Update to 40.0., guix-commits, 2021/10/02
- 76/80: gnu: gnome-weather: Fix GNOME integration., guix-commits, 2021/10/02
- 79/80: system: Introduce the os-release file.,
guix-commits <=
- 78/80: system: Add guix-icons to the base packages., guix-commits, 2021/10/02
- 73/80: gnu: gegl: Add libraw support., guix-commits, 2021/10/02
- 80/80: gnu: gdm: Add the Guix icon., guix-commits, 2021/10/02
- 74/80: gnu: gnome: Add tracker-miners., guix-commits, 2021/10/02
- 77/80: gnu: Add guix-icons., guix-commits, 2021/10/02
- 67/80: gnu: gnome-shell: Update to 40.5., guix-commits, 2021/10/02
- 69/80: gnu: gnome-sudoku: Update to 40.2., guix-commits, 2021/10/02
- 75/80: gnu: gnome-music: Add gst-plugins-good., guix-commits, 2021/10/02