# GNU Guix --- Functional package management for GNU # Copyright © 2018 Julien Lepiller # Copyright © 2021 Maxim Cournoyer # Copyright © 2024 Janneke Nieuwenhuizen # Copyright © 2024 gemmaro # # This file is part of GNU Guix. # # GNU Guix is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or (at # your option) any later version. # # GNU Guix is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Guix. If not, see . DOC_PO_FILES = \ %D%/guix-manual.de.po \ %D%/guix-manual.es.po \ %D%/guix-manual.fr.po \ %D%/guix-manual.pt_BR.po \ %D%/guix-manual.ru.po \ %D%/guix-manual.zh_CN.po DOC_COOKBOOK_PO_FILES = \ %D%/guix-cookbook.de.po \ %D%/guix-cookbook.fr.po \ %D%/guix-cookbook.ko.po \ %D%/guix-cookbook.pt_BR.po \ %D%/guix-cookbook.sk.po \ %D%/guix-cookbook.sv.po EXTRA_DIST = \ %D%/guix-manual.pot \ %D%/guix-cookbook.pot \ $(DOC_PO_FILES) \ $(DOC_COOKBOOK_PO_FILES) %D%/%.pot: $(srcdir)/doc/%.texi $(AM_V_PO4A)$(PO4A) --no-translations -M UTF-8 \ --package-version "$(VERSION)" \ --variable master="$<" \ --variable pot="$@-t" \ --variable po=/dev/null \ --variable localized=/dev/null \ $(POT_OPTIONS) %D%/po4a.cfg date="$$(git log --pretty=format:%ci -n 1 -- $< 2>/dev/null \ || echo $(SOURCE_DATE_EPOCH))" \ sed -ri -e "s,^(.POT-Creation-Date: )[^\]*,\1$$date," "$@-t" mv "$@-t" "$@" %D%/guix-manual.pot: %D%/guix.pot %D%/contributing.pot msgcat $^ > "$@-t" date="$$(git log --pretty=format:%ci -n 1 -- $< 2>/dev/null \ || echo $(SOURCE_DATE_EPOCH))" \ sed -ri "s,^(.POT-Creation-Date: )[^\]*,\1$$date," "$@-t" mv "$@-t" "$@" doc-pot-update: %D%/guix-manual.pot %D%/guix-cookbook.pot .PHONY: doc-pot-update 92ce77158ba57a23cb9d0b3f1613eb755c2f0&showmsg=1'>gnu/services.scm
AgeCommit message (Collapse)Author
2024-03-22system, home: Validate ‘services’ field value.Ludovic Courtès
This guides newcomers who might stick a single (service …) form in this field. * gnu/services.scm (validate-service-list): New macro. (%validate-service-list): New procedure. * gnu/system.scm (<operating-system>)[services]: Add ‘sanitize’. * gnu/home.scm (<home-environment>)[services]: Add ‘sanitize’. Change-Id: I9e29bd9a078e87b627ab766fd669ba9de79f8473
2024-02-19services: activation: Ensure /var/run existence.Nicolas Graves
* gnu/services.scm (activation-script): Ensure /var/run existence. * gnu/build/install.scm (evaluate-populate-directive) [directives]: Remove directory /var/run. Change-Id: I5fb93d33b6b1f045f1e5ba206b9b0b74b5184260 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-02gnu: Use ‘libc-utf8-locales-for-target’.Janneke Nieuwenhuizen
* guix/packages.scm (%standard-patch-inputs): Use ‘libc-utf8-locales-for-target’ instead of ‘glibc-utf8-locales’. * guix/self.scm (%packages): Likewise. * gnu/home/services/ssh.scm (file-join): Likewise * gnu/installer.scm (build-compiled-file): Likewise. * gnu/packages/chromium.scm (ungoogled-chromium/wayland): Likewise. * gnu/packages/gnome.scm (libgweather4, tracker): Likewise. * gnu/packages/javascript.scm (js-mathjax): Likewise. * gnu/packages/package-management.scm (guix, flatpak): Likewise. * gnu/packages/raspberry-pi.scm (raspi-arm64-chainloader): Likewise. * gnu/packages/suckless.scm (svkbd): Likewise. * gnu/services.scm (cleanup-gexp): Likewise. * gnu/services/base.scm (guix-publish-shepherd-service): Likewise. * gnu/services/guix.scm (guix-build-coordinator-shepherd-services) (guix-build-coordinator-agent-shepherd-services): Likewise. * gnu/services/guix.scm (guix-build-coordinator-queue-builds-shepherd-services): (guix-data-service-shepherd-services) (nar-herder-shepherd-services) (bffe-shepherd-services): Likewise. * gnu/services/web.scm (anonip-shepherd-service) (mumi-shepherd-services): Likewise. * gnu/system/image.scm (system-disk-image, system-iso9660-image) (system-docker-image, system-tarball-image): Likewise. * gnu/system/install.scm (%installation-services): Likewise. * guix/profiles.scm (info-dir-file): Likewise. (ca-certificate-bundle, profile-derivation): Likewise. * guix/scripts/pack.scm (store-database, set-utf8-locale): Likewise. * tests/pack.scm: Likewise. * tests/profiles.scm ("profile-derivation, cross-compilation"): Likewise. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Co-authored-by: Christopher Baines <mail@cbaines.net> Change-Id: I24239f427bcc930c29d2ba5d00dc615960a6c374
2023-08-31gnu: services: Revert to deleting and updating all matching servicesBrian Cully
This patch reverts the behavior introduced in 181951207339508789b28ba7cb914f983319920f which caused ‘modify-services’ clauses to only match a single instance of a service. We will now match all service instances when doing a deletion or update, while still raising an exception when trying to match against a service that does not exist in the services list, or which was deleted explicitly by a ‘delete’ clause (or an update clause that returns ‘#f’ for the service). Fixes: #64106 * gnu/services.scm (%modify-services): New procedure. (modify-services): Use it. (apply-clauses): Add DELETED-SERVICES argument, change to modify one service at a time. * tests/services.scm ("modify-services: delete then modify") ("modify-services: modify then delete") ("modify-services: delete multiple services of the same type") ("modify-services: modify multiple services of the same type"): New tests. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>