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 SDMaLgWLZ2YOSQEAqHPOHw:P1 (envelope-from ) for ; Mon, 10 Jun 2024 23:23:49 +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 SDMaLgWLZ2YOSQEAqHPOHw (envelope-from ) for ; Tue, 11 Jun 2024 01:23:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=p.atriar.ch header.s=dkim header.b=q2te7ug6; arc=pass ("simplelogin.co:s=arc-20230626:i=1"); dmarc=pass (policy=quarantine) header.from=p.atriar.ch; 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" ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718061829; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=14gWS9eeUT/9fC/QlAovX/Zxroe877Do9HH+3PenbOw=; b=nblIxn18Pp+nNG3TozbL1nAMSsi7TmJvzr1Wknj5rDP92C4NUUaBGNmnOg9u9LU53FsW6w U/mjfPW2wglpa9pEtBIiPHK3P1NFYffao1zvtty7/58FUc0ghjtCxdyfWSmFWipPOnmJ3s jcozjXOjcY97ZnHILT3meuAo2d+kg8x6S/Ya8E7ojN4ubgMKlCw9InworeOto5X1h3mWCZ I0iNP/I3CwZX9Z5cYQrxApun4i4Mc30UugNJrkRUmGL17LRKIvQCTK+55Wo1Zu9XXfT9XY 5zzuCkcA5mmtoRAMcTka4ozeZ1sR1f2cLhJwxAd7PdfexvdzzljcRoIOIKAe5g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1718061829; a=rsa-sha256; cv=pass; b=Td9L+UPmKnKz/HL6H0XchSmHZuH+fzcK3h7WML0lk1LjN0OchAskk0Dg1jnuWfrlAnxPij vj60pTtC2MaVWkePGzuzmEge4K4shQn4A0ErXZKYoeEsRTQTO01xtTP4GKrANlluW/PGi7 mk0i/3Cl0egrhm17M9WDWpHt/BZQXFnLyp48pPXLvACTZn4iwH+LGftCSNT4jFicn6a/UH /g35uFrNPnbTM9EsZtmJyJsinMUy//EaWASVxpIDnb18T7rgx/eAIpH2d96NnaOJVZdUTZ ohoEf10d5QGcEFklE4bI+qTKAn+XeDAoPLbjfVG6K4OGDSPeS1srlwepiTf3HQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=p.atriar.ch header.s=dkim header.b=q2te7ug6; arc=pass ("simplelogin.co:s=arc-20230626:i=1"); dmarc=pass (policy=quarantine) header.from=p.atriar.ch; 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" 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 40F5BF0AB for ; Tue, 11 Jun 2024 01:23:48 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGoM9-00032r-Pe; Mon, 10 Jun 2024 19:23:17 -0400 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 1sGoM8-000327-9F for help-guix@gnu.org; Mon, 10 Jun 2024 19:23:16 -0400 Received: from mail-200166.simplelogin.co ([176.119.200.166]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sGoM6-0005rp-Hy for help-guix@gnu.org; Mon, 10 Jun 2024 19:23:16 -0400 ARC-Seal: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1718061788; cv=none; b=1gcHD0vZ7YabdEvoIxAWETvfVdCjAoNy5lJf/JRvlzsQoh5QGgLTyKkD/Vta4LsBFV0k7mi4rVE1gX3UOB4dkC4us8+GL9k/Mj/0QUAqDMyG7wqtUMe8dmTMd1+6MYZLs+d6tQcjb8BMZXxU/4GPSd+Xlh7lAI8BCJwOF9Sv8J3WOh9ZifkEDp/K4or9qLkcn1EfmtElpuKGQRznlYdeX9m7jl9Du5K86jqpbF0CS/IHKrJ1ppyc52iTQQWs+6U/ZuGH8NA/x8tZp4bE2FmH/qaSy9Ne8YYrHBHAiLcXK4PEOYLO1WUd0b7Ix60ZxKAp89A1+EME9bsLEJEAMHDueg== ARC-Message-Signature: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1718061788; c=relaxed/simple; bh=14gWS9eeUT/9fC/QlAovX/Zxroe877Do9HH+3PenbOw=; h=Date:Subject:In-Reply-To:From:To:Cc:References; b=fWnQtlOiAeuWkCkF5nPA9RPFf6+KlPsM83NwXhGdAqLbKw3Mvtn1NPWv8T8F2B/F51ISVbec5Et7FpCniIu5UGC/2Or1rlMm4+Nbs5fCeyZ9jfn/gcMuudj53r5Y3fUIx7XZMjbVoHaWgMZ6uBaXs3nVE+oc6CVYfujtM2uwtsqiOoNBq7410OVAgXiA3Mt1F/yt+zGKFjj2iYJfEt06ZCiXi+2KQWPBckLY6tZOaMxb9NKSVtrtQ9Ye8Za+WcfxzXKpGgkCKwC/GID5lryyOSeIg8iWUCa4HorJbeiqrNQY42+oMGSa49uiThLPWiN07U2Gf9TvPui6XE5rDz0Cpg== ARC-Authentication-Results: i=1; mail.protonmail.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=p.atriar.ch; s=dkim; t=1718061788; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=14gWS9eeUT/9fC/QlAovX/Zxroe877Do9HH+3PenbOw=; b=q2te7ug6mJnMFottExKsi+TJLHGVz58o3NvSkIG5ZQ8YnxRSag//PzsyuHSV5/bvUJA9Of +AXD0UzujJE1e8x15tXTpNHwpMVKUrTGiYKA2yQGZP3RBivEjhBFNIxr3HQlbodOzod3jR TTwrCd1LC/aorHGUW4bKg6kfKDTTFRQ= Date: Mon, 10 Jun 2024 23:23:03 +0000 Subject: Re: Seeking help with g-expressions maze In-Reply-To: <875xuh1bk3.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha512; boundary="------a97fadaea884315a2c7193535e5fc9e8498c33277322eaefa4f5f200c6295df8"; charset=utf-8 Content-Transfer-Encoding: 7bit From: =?utf-8?b?QWJiw6k=?= To: Christopher Baines Cc: "help-guix@gnu.org" Message-ID: <171806178849.7.15320532995280398045.352021884@p.atriar.ch> References: <171799411588.7.857514431154339738.351278683@p.atriar.ch> <875xuh1bk3.fsf@cbaines.net> X-SimpleLogin-Type: Reply X-SimpleLogin-EmailLog-ID: 352021885 X-SimpleLogin-Want-Signing: yes Received-SPF: pass client-ip=176.119.200.166; envelope-from=sl.lmysyibtguzdamrrha4dklbagezdqnbugqzv2.dffmqgtnr63hk@p.atriar.ch; helo=mail-200166.simplelogin.co X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.64 X-Spam-Score: -7.64 X-Migadu-Queue-Id: 40F5BF0AB X-Migadu-Scanner: mx11.migadu.com X-TUID: lC7PV+zK9HrH This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------a97fadaea884315a2c7193535e5fc9e8498c33277322eaefa4f5f200c6295df8 Content-Type: multipart/mixed;boundary=---------------------1bf0916d55eb6e858605605a5aac53ba -----------------------1bf0916d55eb6e858605605a5aac53ba Content-Transfer-Encoding: quoted-printable Content-Type: text/plain;charset=utf-8 On Monday, June 10th, 2024 at 9:50 AM, Christopher Baines wrote: > Abb=C3=A9 gnu.bonfire@p.atriar.ch writes: > = > > (define-configuration/no-serialization home-rbw-configuration > > (pinentry-program > > (file-like (file-append pinentry "/bin/pinentry-curses")) > > "Pinentry program to use.") > > (email > > (string "") > > "Email address of the user") > = > = > ... > = > > (define (rbw-config config) > > (match-record config > > (pinentry-program email base-url identity-url notifications-url > > client-cert-path sync-interval lock-timeout) > > `((pinentry-program . ,pinentry-program) > > (email . ,email) > > (base_url . ,base-url) > > (identity_url . ,identity-url) > > (notifications_url . ,notifications-url) > > (client_cert_path . ,client-cert-path) > > (sync_interval . ,sync-interval) > > (lock_timeout . ,lock-timeout)))) > > (define (home-rbw-configuration-file config) > > (let ((xformed-config (rbw-config config))) > > (computed-file "rbw-config.json" > > = > > #~(call-with-output-file #$output > > (lambda (port) > > (display #$(scm->json-string xformed-config) port)))))) > = > = > Here you're calling scm->json-string on an alist containing the > = > file-append record for pinentry-program. scm->json-string doesn't know > = > how to handle that, it's invalid. Hence the exception you're getting. > = > > `(("rbw/config.json" ,(home-rbw-configuration-file config)))) > = > = > ... > = > > While applying this module, I end up with following obvious error, but > > I'm not quite sure how to go about resolving this: > > = > > ----------------8<----------------------8<----------------------- > > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > > Throw to key `json-invalid' with args` (# "/bin/pinentry-curses">= )'. > > ----------------8<----------------------8<----------------------- > = > = > If you want to use scm->json-string, you need to be working with a data > = > structure it can understand, and it can't understand gexp's. That > suggests you should run it on the build side, once the file-append > record has been transformed in to a string. > = > I think this would be similar to how the transmission service in Guix > builds it's settings.json file. Thanks for the hint. Abbe -----------------------1bf0916d55eb6e858605605a5aac53ba-- --------a97fadaea884315a2c7193535e5fc9e8498c33277322eaefa4f5f200c6295df8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wnUEARYKACcFgmZnisgJkL9QKcjQdcr0FiEEPAHKC9W+qGYECCHrv1ApyNB1 yvQAACyPAP47iQ8dgFhw2FBwNbfJT/aHsd8g5ZCrl0M9L89xrnJ6cwD/Wrs9 aorpaWKFHhzb1YRads01zH6I3EypDCyjLxToaQA= =ZMRQ -----END PGP SIGNATURE----- --------a97fadaea884315a2c7193535e5fc9e8498c33277322eaefa4f5f200c6295df8--