From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uDA9GyOR2WMmlwAAbAwnHQ (envelope-from ) for ; Tue, 31 Jan 2023 23:07:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sMZAGyOR2WOKuwAA9RJhRA (envelope-from ) for ; Tue, 31 Jan 2023 23:07:31 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E8EC26728 for ; Tue, 31 Jan 2023 23:07:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMymR-0007Av-7w; Tue, 31 Jan 2023 17:07:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMymN-0007AN-8k for guix-patches@gnu.org; Tue, 31 Jan 2023 17:07:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMymN-0004qc-0R for guix-patches@gnu.org; Tue, 31 Jan 2023 17:07:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMymM-0007Ks-KP for guix-patches@gnu.org; Tue, 31 Jan 2023 17:07:02 -0500 Subject: bug#60498: [PATCH] home: services: fontutils: Add service value. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Tue, 31 Jan 2023 22:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 60498 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Giacomo Leidi Cc: 60498-done@debbugs.gnu.org Mail-Followup-To: 60498@debbugs.gnu.org, ludo@gnu.org, goodoldpaul@autistici.org Received: via spool by 60498-done@debbugs.gnu.org id=D60498.167520277528136 (code D ref 60498); Tue, 31 Jan 2023 22:07:02 +0000 Received: (at 60498-done) by debbugs.gnu.org; 31 Jan 2023 22:06:15 +0000 Received: from localhost ([127.0.0.1]:55197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMylb-0007Jk-1h for submit@debbugs.gnu.org; Tue, 31 Jan 2023 17:06:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMylY-0007JT-1a for 60498-done@debbugs.gnu.org; Tue, 31 Jan 2023 17:06:13 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMylS-0004fF-CN; Tue, 31 Jan 2023 17:06:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=S3V5XGQR7XNH79w/pwo9kuGuD2yBu7XaPPUoonQMkBE=; b=RSQ+zt0pIzf/jTrwtCXk lHFIODKinobnWBPiE1wb02KAU6dGiahCCe7tpmd/Tgcx/V4y9mqHgRv69d7Vo6wO1e+DVp8iU9I3F oiI4JLxHruErljzOz1QjkGECdmnQLmYZghzyPWhFiBN7Aca8NDLDb+xSYhlcmPdRmHjxcovMUDGCn IvAkNVUNts1RiMRMbKTtwWjzqidhELV5JPf8aOLXckRZVaOSdWAz2VHpdy/DyA6w95fVyLbLByNFX 43RrVa86jYBP9q2a7f5SUBRg24qqwrS4dYtw03WuS474ysYW3jqLBCYJE72ZUwJKaM2Me7ewLY6g9 gme76cr3GnYssQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMylR-0000D0-Vv; Tue, 31 Jan 2023 17:06:06 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <3c0e43334aab599678ddeee842c073ee@autistici.org> <20230102174451.6827-1-goodoldpaul@autistici.org> Date: Tue, 31 Jan 2023 23:06:03 +0100 In-Reply-To: <20230102174451.6827-1-goodoldpaul@autistici.org> (Giacomo Leidi's message of "Mon, 2 Jan 2023 18:44:51 +0100") Message-ID: <878rhitl4k.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675202851; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=S3V5XGQR7XNH79w/pwo9kuGuD2yBu7XaPPUoonQMkBE=; b=hyZrR2Hn1qGhA6cvx1nKYdZvZMQiqkU3PULDJRpjCk9VEt4ODO5+b8ipeHvyQFH0G+dbR0 Y0lifQ0stc61DgNG6GvXCKAwlVnowroa4kxmW8rEq+pwhoa/RL4peHORjdFaw6pxe5lEma DWnw8OcEXwyEWnTpF56fsU0Ml7VbH8OVAVk0Ytz+/1v/it9ElVadw6ePc4Ad6iDuE6aWaS jqcoPtc100j4i6gulQ1PC36qZeWW0eIMj/ylSxz8asTKBuxtz94CoAdPm+Bu5VX333jyz8 JWO1gqYT5b84mZ3fyt78aB5l9U6wqPC+bfseApwRyhkKE+qz1Y5/tFnpmf9RRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=RSQ+zt0p; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675202851; a=rsa-sha256; cv=none; b=dTIze5b3gQHw5gim24tfLgHvRRjtiA3bv6zn3lapJPNr9hSW6Zpr/DJXVW1DzN3G+l2bho Fd5TGZAr/RtHWTr1qlXqEQsODi50wxuZSEZzXKRQe/Nwmciy6TxZMhKKOBtWibccp609Ze caQprX5jIN2zkXjhxOuF38ywnA0aqx5mscBGyMjmd0ZUtADgEKSfqj/zcNUt3UXrTk2l/V TlNv19LMuqQa3B9Gi1yatd3krhfDNeN+NUNy3NI+VXnHw5G0dUu0lq5lipVzVv81FpK3Jy XCH1+87RdeIZZHYHJ5L9NxmJeHpPWuEO1yAS2tCZPhtCCjWp8KgaJ3uKDRFj2w== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=RSQ+zt0p; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-Spam-Score: -2.28 X-Migadu-Queue-Id: E8EC26728 X-Migadu-Spam-Score: -2.28 X-TUID: mia4e8aL1UE1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Giacomo, Giacomo Leidi skribis: > * gnu/home/services/fontutils.scm (add-fontconfig-config-file): Add > support for multiple paths; > (home-fontconfig-service-type): Honor it; > * doc/guix.texi (Fonts Services): Document it. Applied with the cosmetic changes below. Thanks! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/doc/guix.texi b/doc/guix.texi index f72deb3222..64873db00b 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -42015,29 +42015,34 @@ A typical extension for adding a channel might look like this: @end lisp @end defvar -@node Fonts Services +@node Fonts Home Services @subsection Fonts Home Services The @code{(gnu home services fontutils)} module provides services for -user-specific @code{fontconfig} setup. +user-specific Fontconfig setup. The +@uref{https://www.freedesktop.org/wiki/Software/fontconfig,Fontconfig} +library is used by many applications to access fonts on the system. -@defvr {Scheme Variable} home-fontconfig-service-type -This is the service type for generating configurations for @code{fontconfig} and @code{fc-*} utilities. -Its associated value is a list of strings (or gexps) pointing to fonts locations. +@defvar home-fontconfig-service-type +This is the service type for generating configurations for Fontconfig. +Its associated value is a list of strings (or gexps) pointing to fonts +locations. Generally, it is better to extend this service than to directly configure it, as its default value is the default Guix Home's profile -font installation path (@code{~/.guix-home/profile/share/fonts}). If you configure this -service directly, be sure to include the above path. +font installation path (@file{~/.guix-home/profile/share/fonts}). If +you configure this service directly, be sure to include the above +directory. -A typical extension for adding an additional path might look like this: +A typical extension for adding an additional font directory might look +like this: @lisp (simple-service 'additional-fonts-service home-fontconfig-service-type (list "~/.nix-profile/share/fonts")) @end lisp -@end defvr +@end defvar @node Invoking guix home @section Invoking @command{guix home} diff --git a/gnu/home/services/fontutils.scm b/gnu/home/services/fontutils.scm index f959ee4fd6..3399cb7ec8 100644 --- a/gnu/home/services/fontutils.scm +++ b/gnu/home/services/fontutils.scm @@ -35,16 +35,16 @@ (define-module (gnu home services fontutils) ;;; ;;; Code: -(define (add-fontconfig-config-file paths) +(define (add-fontconfig-config-file directories) `(("fontconfig/fonts.conf" ,(mixed-text-file "fonts.conf" (apply string-append `(" -\n" ,@(map (lambda (path) - (string-append " " path "\n")) - paths) +\n" ,@(map (lambda (directory) + (string-append " " directory "\n")) + directories) "\n")))))) (define (regenerate-font-cache-gexp _) --=-=-=--