From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OOiqAvhUrl8RFAAA0tVLHw (envelope-from ) for ; Fri, 13 Nov 2020 09:42:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wssxOvdUrl9SbwAA1q6Kng (envelope-from ) for ; Fri, 13 Nov 2020 09:42:15 +0000 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 6579C940657 for ; Fri, 13 Nov 2020 09:42:15 +0000 (UTC) Received: from localhost ([::1]:47844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdVat-0001bP-Vb for larch@yhetil.org; Fri, 13 Nov 2020 04:42:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdVak-0001bD-5w for bug-guix@gnu.org; Fri, 13 Nov 2020 04:42:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35105) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdVaj-0007pz-SV for bug-guix@gnu.org; Fri, 13 Nov 2020 04:42:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdVaj-0007dF-OA for bug-guix@gnu.org; Fri, 13 Nov 2020 04:42:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44612: Read standard input in `guix repl' Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 13 Nov 2020 09:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44612 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 44612@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160526050929317 (code B ref -1); Fri, 13 Nov 2020 09:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Nov 2020 09:41:49 +0000 Received: from localhost ([127.0.0.1]:46651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdVaX-0007cm-0i for submit@debbugs.gnu.org; Fri, 13 Nov 2020 04:41:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:36614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdVaT-0007cd-K0 for submit@debbugs.gnu.org; Fri, 13 Nov 2020 04:41:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdVaT-0001ao-Cu for bug-guix@gnu.org; Fri, 13 Nov 2020 04:41:45 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:39223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdVaR-0007gu-5X for bug-guix@gnu.org; Fri, 13 Nov 2020 04:41:45 -0500 X-Originating-IP: 90.92.160.122 Received: from bababa (lfbn-idf2-1-1094-122.w90-92.abo.wanadoo.fr [90.92.160.122]) (Authenticated sender: mail@ambrevar.xyz) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 4837C60010 for ; Fri, 13 Nov 2020 09:41:38 +0000 (UTC) From: Pierre Neidhardt Date: Fri, 13 Nov 2020 10:41:38 +0100 Message-ID: <87h7ptzj8t.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.183.195; envelope-from=mail@ambrevar.xyz; helo=relay3-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/13 04:41:39 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.999, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.9 (++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.1 (/) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -0.61 X-TUID: 3+OFN5UkZpRw --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable `guix repl` is a fantastic, hassle-free tool to bind Guix with third-party languages. I've done it here: https://github.com/atlas-engineer/nyxt/blob/2-pre-release-4/libraries/ospam= a/ospama-guix.lisp It just works! The only issue is that it needs to be passed a file, so I must create a temporary file so that I can call `guix repl` on it. It'd be better if we could send Guile code to the standard input of the `guix repl -` process to bypass file generation. Thoughts? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl+uVNISHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/V7kH/2E/kYNnzILWkQmj5n1T4jeWj/FIVwxu 0w88U3S459RMFI9Wrav+8ZXxlqoL3W+OTQVngJpc+eym0wBCnkQl6c7RrnrFINct luyOyTLgD6l5iPu+ZssLdD0vyLYjXikRjQtwzDjO0Ls+kQc7tVtRm4Whq+XVW5XJ 3kPqNmJV5P5LkpZJFXE5T5qtxwt1/U7kGztsF7f5tT8O+xuRkGvcRCrkVWytqfy8 WHL+ZL+y+yl2iUZsvUelHHB8Q2FG5/QJ9Lpq3XeTUss4rj+2HdxpgBxXVKLetmwC EchSnK45CYIPWxAWmq/ogo6dkPznrILnN/oVyN6+vIRnd5CVet06ASM= =vLIL -----END PGP SIGNATURE----- --=-=-=--