From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QMwZOeFCWWdXvwAAqHPOHw:P1 (envelope-from ) for ; Wed, 11 Dec 2024 07:44:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id QMwZOeFCWWdXvwAAqHPOHw (envelope-from ) for ; Wed, 11 Dec 2024 08:44:34 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=coquand.email header.s=fm1 header.b=nfiTXmNI; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="l +OFNZ7"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=coquand.email ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733903073; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=deCu+9TTwtfZylCOwPVUTqYQs3x0SfxQifvK7LrE7jA=; b=lzElck7aGByEaHrgfEBHaifRbnvsyQsmjfUlffVv5y/zc9JdA//hUgOfAPdRpCKhNXCrEv DDtum0OmpjdhmSLXQoJkzOdrkfs/XvRW7pqNbwvFT4r0LZGLfrdjedkrhezCp5RNziiOIt ai3UEpUF3ApLzXNt5R5TWFzClOokRU6/Iz4ZH9/BL/qzwbQrop/cCBgCx6gBQsx+K4iefw zTEVusUZ1jV6b2WLuHbGHIhr+PnTZQq7ZPm2MNoI2zt3g7ptYK5ohsyLVWgc22QB+YICAF +yOIoYSef/QtDR9/6nYruKx4RdUwsFtNGCJLuOIwvbo143eMP/3eeyGNbTWsCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=coquand.email header.s=fm1 header.b=nfiTXmNI; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="l +OFNZ7"; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=coquand.email ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733903073; a=rsa-sha256; cv=none; b=W9d+gO3F+9btVZoLwSXBXbNuxNIJ/bR/d+biRMWXVoQYWMZIJd66gmnBzKjpemlRRRjz8I vXhPIZImZcgYzf4EqePaKI4EXdste5/iJ0kshO0rM7zDZpHkgOFpFMh3vXAlJ0huaXUMTu EO/ycTOmjtKrJhsW/UX6sbXIW583p06Gqu87pE5B/Z1/PCsbPzv04t1gkoxdUWOioCw/Vy XGe6Xqah9RFcZfOFf0z6h/HvzLg7At/yIblKVmrDkEZM4AaUCXZ9JumzPjjJvr5UKeaKBQ w0w/HZ03oLr/BlkJKtUpgdN6vatzFxf5daDmycNqRmYvEZRXcPXVObpHr1Wp6A== 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 CA8B58F784 for ; Wed, 11 Dec 2024 08:44:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLHO8-0001Hz-Vp; Wed, 11 Dec 2024 02:44:05 -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 1tLHO6-0001HV-7y for help-guix@gnu.org; Wed, 11 Dec 2024 02:44:02 -0500 Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLHO4-00082q-Cr for help-guix@gnu.org; Wed, 11 Dec 2024 02:44:01 -0500 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id B2E781383E22 for ; Wed, 11 Dec 2024 02:43:57 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Wed, 11 Dec 2024 02:43:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coquand.email; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1733903037; x=1733989437; bh=deCu+9TTwtfZylCOwPVUTqYQs3x0SfxQ ifvK7LrE7jA=; b=nfiTXmNI2msBKdz2vpt/0hGydPzrAI2mj2Q+HrwIAeL932FE 8GB95lRjROKJ7bktuz972kMDj9sx0tJpQpfirQjo65zJTl9BtIRtR4UYuajnIWk0 c/3vE6lIf+6fZ0PnBdfVITvKNr8zu5YAj+MyRezn/478I/moLL81rYo5hRFe6uu/ y3WO05X/wV7WQXdXZwRA+kkydFshEkj42EOoJcmRhvxSf/DSGXbYggmyNXKeX6C0 6yeNecZlXAXMO78oQROID/Cx2a9yhxzku410pa+svA9ZM6r57AQOc8wwAPa7m22W BzQlnIpMsSTVdk5v6vPCGodj2iJeqkf/ThqS0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1733903037; x= 1733989437; bh=deCu+9TTwtfZylCOwPVUTqYQs3x0SfxQifvK7LrE7jA=; b=l +OFNZ7AcWz4k16X5+ZbVGASdHNNmAjEeFzKtFhwymbpDXU4NMSEvOG5r7eK76cID SjK4AAlkxAnZTq5ZvaMZmiUDF4x2GLITUZfSunlXm3YtcJThHIwBB/X7BF2+hJ5C 2TBy28QwnmTsJCbGNmJwAPK0VEq6S0mDwdGw0wqpoz5RC9xmu8DzYiMtUeT0HBly vi69aiB0nKlP6UkjZFvo0Sf8wWe9hWSm7FB/khZ9BXj/teL7WzZGFuhOdwvjYkHz pMzsAIeShjs8G85fc3wzDGetSY8o184oE86o39OKY9EowSO4jtSRdGaCdlIPxD8V JTiQNmr1sG2XDGNczd5QA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrjeelgddutdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuff fkgggtsehttdertddttddtnecuhfhrohhmpeforghrtgcuvehoqhhurghnugcuoehmrghr tgestghoqhhurghnugdrvghmrghilheqnecuggftrfgrthhtvghrnhephfdvfeelffdvhe egieevtdeffeevvdethefhjeefueejledtveejvddtudetieffnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhgtsegtohhquhgrnhgurd gvmhgrihhlpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphht thhopehhvghlphdqghhuihigsehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i587e488e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 11 Dec 2024 02:43:56 -0500 (EST) From: Marc Coquand To: help-guix@gnu.org Subject: Prepend string to "file" in G-expression Date: Wed, 11 Dec 2024 09:43:52 +0200 Message-ID: <87frmuekav.fsf@coquand.email> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=103.168.172.145; envelope-from=marc@coquand.email; helo=fout-a2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -6.19 X-Spam-Score: -6.19 X-Migadu-Queue-Id: CA8B58F784 X-TUID: NVuC4DX+NnCH Heya, I'm trying to grok g-expressions and setting up a small guile program that sends an email. I have the following (define notify-mail-gexp (with-imported-modules '((guix build utils)) #~(begin (use-modules (guix build utils)) (let* ((msmtp-bin #$(file-append msmtp "/bin/msmtp")) (run-number (getenv "RUN")) (result (getenv "RESULT")) (job-name (getenv "JOB")) (password-eval-command (string-append "--password-eval=" #$coreutils "/bin/cat"))) ;; more to come later (invoke msmtp-bin "--user=\"me@address\"" password-eval-command "-t" "--read-envelope-from" "--set-from-header=\"auto\"" (result-email job-name run-number result)))))) (program-file "notify-mail" notify-mail-gexp) What I struggle with is the correct incantation to build an argument to invoke that looks like this: --password-eval=/gnu/blahblah/bin/cat some-file And I'd love any kind of directions for how I'm supposed to write this correctly. Thanks in advance -- Marc