[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: |
Tue, 28 Sep 2021 07:21:44 -0400 (EDT) |
mothacehe pushed a commit to branch wip-gnome40
in repository guix.
commit 98777cf11aa470f1b6c4aeb87c534bdcf75e9b53
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)
- branch wip-gnome40 created (now b7b9822), guix-commits, 2021/09/28
- 10/80: gnu: gnome-desktop: Update to 40.4., guix-commits, 2021/09/28
- 05/80: gnu: gnome-screenshot: Update to 40.0., guix-commits, 2021/09/28
- 20/80: gnu: gnome-calendar: Update to 40.2., guix-commits, 2021/09/28
- 24/80: gnu: amtk: Update to 5.3.1., guix-commits, 2021/09/28
- 21/80: gnu: tepl: Update to 6.00.0., guix-commits, 2021/09/28
- 44/80: gnu: eog: Update to 40.3., guix-commits, 2021/09/28
- 47/80: gnu: gsettings-desktop-schemas: Update to 40.0., guix-commits, 2021/09/28
- 32/80: gnu: sushi: Update to 3.38.1., guix-commits, 2021/09/28
- 51/80: gnu: libgdata: Update to 0.18.1., guix-commits, 2021/09/28
- 79/80: system: Introduce the os-release file.,
guix-commits <=
- 76/80: gnu: gnome-weather: Fix GNOME integration., guix-commits, 2021/09/28
- 01/80: gnu: vulkan-loader: Fix include path location., guix-commits, 2021/09/28
- 04/80: gnu: gnome-backgrounds: Update to 40.1., guix-commits, 2021/09/28
- 03/80: gnu: Update gtkmm to 4.2.0, add gtkmm@3, and adjust gtkmm@2., guix-commits, 2021/09/28
- 02/80: gnu: Add gtk., guix-commits, 2021/09/28
- 08/80: gnu: gnome-menus: Update to 3.36.0., guix-commits, 2021/09/28
- 11/80: gnu: gnome-disk-utility: Update to 40.2., guix-commits, 2021/09/28
- 09/80: gnu: gnome-user-docs: Update to 40.5., guix-commits, 2021/09/28
- 36/80: gnu: gnome-clocks: Update to 40.0., guix-commits, 2021/09/28
- 07/80: gnu: gnome-shell-extensions: Update to 40.4., guix-commits, 2021/09/28