summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNoé Lopez <noelopez@free.fr>2026-03-27 19:30:05 +0100
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-04-04 18:27:03 +0200
commitb6509681e2c4cf9c585bbc2ebed8821134b60ee0 (patch)
tree61ff38cf969edff1ebd90aeca470265d088a39ae /gnu/packages
parentcb714dcd256e765646460ee1aa7efc34536c6894 (diff)
gnu: Add gardenhostd.
* gnu/packages/freedesktop.scm (gardenhostd): New variable. Change-Id: Ic37b69c96dc00204d59f424dba3b757308271936 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/freedesktop.scm54
1 files changed, 54 insertions, 0 deletions
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 8e29cb626b2..83d4022a62f 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -1150,6 +1150,60 @@ GNOME Shell. The @command{localectl} command-line tool allows you to interact
1150with localed. This package is extracted from the broader systemd package.") 1150with localed. This package is extracted from the broader systemd package.")
1151 (license license:lgpl2.1+))) 1151 (license license:lgpl2.1+)))
1152 1152
1153(define-public gardenhostd
1154 (package
1155 (name "gardenhostd")
1156 (version "1.1")
1157 (source (origin
1158 (method git-fetch)
1159 (uri (git-reference
1160 (url "https://codeberg.org/axtlos/gardenhostd.git")
1161 (commit (string-append "v" version))))
1162 (file-name (git-file-name name version))
1163 (sha256
1164 (base32
1165 "1q0pdh0imc2ggb26cddl62hx6fmz6z4hqj2352a4k9wxyn5kfiam"))))
1166 (build-system meson-build-system)
1167 (arguments
1168 (list
1169 #:imported-modules `(,@%meson-build-system-modules
1170 ,@%pyproject-build-system-modules)
1171 #:modules '(((guix build pyproject-build-system) #:prefix pyproject:)
1172 (guix build meson-build-system)
1173 (guix build utils))
1174 #:phases
1175 #~(modify-phases %standard-phases
1176 (add-after 'install 'remove-extra-files
1177 (lambda _
1178 (with-directory-excursion #$output
1179 (delete-file-recursively "etc/init.d")
1180 (rmdir "etc"))))
1181 ;; See <https://codeberg.org/guix/guix/issues/7579>.
1182 (add-after 'install 'wrap-search-paths
1183 (lambda _
1184 (wrap-program (string-append #$output "/libexec/gardenhostd")
1185 `("GUIX_PYTHONPATH" prefix
1186 ,(map
1187 (lambda (package)
1188 (string-append
1189 package "/lib/python"
1190 (pyproject:python-version #$(this-package-input "python"))
1191 "/site-packages"))
1192 ;; Avoids references to meson’s libraries.
1193 (list #$(this-package-input "python")
1194 #$(this-package-input "python-pygobject"))))))))))
1195 (inputs
1196 (list bash-minimal
1197 python
1198 python-pygobject))
1199 (home-page "https://codeberg.org/axtlos/gardenhostd")
1200 (synopsis "Minimal Python implementation of systemd-hostnamed")
1201 (description "This package is a partial implementation of the
1202systemd-hostnamed daemon. It provides the @code{org.freedesktop.hostname1}
1203D-Bus interface, which helps applications like GNOME Settings retrieve and
1204modify the system’s hostname, as well as set a pretty hostname for display.")
1205 (license license:gpl3+)))
1206
1153(define-public packagekit 1207(define-public packagekit
1154 (package 1208 (package
1155 (name "packagekit") 1209 (name "packagekit")