From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qPp4B3LWF2J04wAAgWs5BA (envelope-from ) for ; Thu, 24 Feb 2022 20:03:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ADIzBHLWF2K3+gAAauVa8A (envelope-from ) for ; Thu, 24 Feb 2022 20:03:14 +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 9E0152FB26 for ; Thu, 24 Feb 2022 20:02:36 +0100 (CET) Received: from localhost ([::1]:48414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNJNr-0002us-6V for larch@yhetil.org; Thu, 24 Feb 2022 14:02:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNJFa-0001Rg-Hn for guix-patches@gnu.org; Thu, 24 Feb 2022 13:54:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56527) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNJFa-0005mp-7z for guix-patches@gnu.org; Thu, 24 Feb 2022 13:54:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNJFa-0000Rk-3K for guix-patches@gnu.org; Thu, 24 Feb 2022 13:54:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53676] [PATCH v2 3/4] services: pulseaudio: Add an extra-script-files configuration field. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 24 Feb 2022 18:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53676 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer , 53676@debbugs.gnu.org Received: via spool by 53676-submit@debbugs.gnu.org id=B53676.16457288231690 (code B ref 53676); Thu, 24 Feb 2022 18:54:02 +0000 Received: (at 53676) by debbugs.gnu.org; 24 Feb 2022 18:53:43 +0000 Received: from localhost ([127.0.0.1]:50424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNJFH-0000RB-Lx for submit@debbugs.gnu.org; Thu, 24 Feb 2022 13:53:43 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:45514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNJFF-0000R2-SS for 53676@debbugs.gnu.org; Thu, 24 Feb 2022 13:53:43 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by laurent.telenet-ops.be with bizsmtp id z6tf2600A4UW6Th016tftb; Thu, 24 Feb 2022 19:53:39 +0100 Message-ID: <27655b0c24666a93d23800ee74837ea032667432.camel@telenet.be> From: Maxime Devos Date: Thu, 24 Feb 2022 19:53:34 +0100 In-Reply-To: <20220224163828.11330-3-maxim.cournoyer@gmail.com> References: <20220224163828.11330-1-maxim.cournoyer@gmail.com> <20220224163828.11330-3-maxim.cournoyer@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-WdOALBRQ6nfrSoBPjfbv" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1645728819; bh=3lCT0+vgsQ5r6xrpjWHcRZ63Q495wQ1Ux3ubRe1cdQs=; h=Subject:From:To:Date:In-Reply-To:References; b=W9wrOEhSRgLdVq8gaYKV49hBRuP6W52a2qdwyT8am0UATSVNMkn3uYGekO1vZr+QR OW7tEi0KeJthu431AajxBWYEleFNAAcwwTIeYqA0opdqS4rXShcN8EN37WBpZ1XGYI B68Up0uInRkGeuSLESvq4tnYkSLmmT6QEd032VsmEczJ7NI9ijc3XaUlzHvU1R3hbU u1YoP0XlkHX7bSl15/opu6Y+rO48PegBvpMHYNEZiZEGhOep5+cWhauZyZz1cRGVGv VzsImygSqb2D8pFLhq0BXkSNueV1DLPBDbPAtzrVIOuo1Gp6/gd+4QXmXBSgpE79Tg O/LtDgG753ONQ== 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" 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=1645729356; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc: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=3lCT0+vgsQ5r6xrpjWHcRZ63Q495wQ1Ux3ubRe1cdQs=; b=YFgLJGpXlwwJqhsSVn/eokMzhJDPhI2jFTJDjKwaJjsNhqnwH9A/oLMzDg8+boHEmCqDZI 7187xEMSOVm1AI4lAGKl5NHD2jLOwzEGYa0rLzsb4q48HHLT+kMz2NrazQtWZlwqE9gHTl S999v/Snqe0qTWBRHJGp71XcgWPVDUOG4ulaUxrBBsymeUTO5522A6mHOfrcRUOi0VNr5D GLJlfIley2vyyRt/ehpQ3I4vFQnvE1bi9k1qVF6ykSXZOOnNGMOglh99pWEIDFrGebVkUL sES9bs1loYICzwPQcK/rTlg56AHsiGAtFOjYCJvMY1Gra61DeIOtT4cz4jodZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645729356; a=rsa-sha256; cv=none; b=L2Z7rI7lpmlEG9mXhbsRFxKLzVuwsRKP+0uT2PhpnIQxdF4rvSHtZENhMyu8OE/Ro8d5Pz 54tm5iiSqr9o42YWKS+0gi/j4I7LvgH/gMUQ9U9FzOnk5G56meid6cElKz8J2HMO3aR4L2 wkUf4JPlk08WPPBXqhMFOTIo3UNGJ2KggZXOnZTrdsBvLrvhxW6gy9UmYr/XEDZPYldeF0 pP9kZTOybI/i4HVcxrtjtTvK28c6J3Yc4Js8c4B0e34VAELB+SdkwqgauvCLLcjd5Bh/Q0 JO7qSNppPT+K2vNPN9AR4cQMxe5bjbkbA/rGLGPhaNEHc3xOPT+ZSsHpO3eNFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=W9wrOEhS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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" X-Migadu-Spam-Score: -4.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=W9wrOEhS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); 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" X-Migadu-Queue-Id: 9E0152FB26 X-Spam-Score: -4.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: G7QJEqyuqdeC --=-WdOALBRQ6nfrSoBPjfbv Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Maxim Cournoyer schreef op do 24-02-2022 om 11:38 [-0500]: > +=C2=A0 (define (file-like->name file) > +=C2=A0=C2=A0=C2=A0 (match file > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((? local-file?) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (local-file-name file)) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((? plain-file?) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (plain-file-name file)) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((? computed-file?) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (computed-file-name file)) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (_ (leave (G_ "~a is not a local-file, pl= ain-file or \ > +computed-file object~%") file)))) This would not work with things like '(file-append ...)'. Perhaps 'extra-script-files->file-union' can be made more general by creating a variant of 'file-union' for this use case? Maybe something like (untested): ;; Based on 'file-union' (define* (file-directory . files) ; files: (file-like1 file-like2 ...) (computed-file name (with-imported-modules '((guix build utils)) (gexp (begin (use-modules (guix build utils)) (mkdir (ungexp output)) (chdir (ungexp output)) (ungexp-splicing (map (lambda (source) (gexp (let ((target (basename source)) ;; Stat the source to abort early if it do= es ;; not exist. (stat (ungexp source)) (symlink (ungexp source) (ungexp target)))= )) files))))))) Greetings, Maxime. --=-WdOALBRQ6nfrSoBPjfbv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYhfULhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hRYAQCLySQxGVpB0Ib46gJgIEt3kpFd 09PAG6BQ81iVqoZdmwD+LT5Fyr8jyucUaNsFqGvFrY8dO78oUAQ8VAMHQpXMTQo= =l2tY -----END PGP SIGNATURE----- --=-WdOALBRQ6nfrSoBPjfbv--