From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id TtE/K9OTx16+LgAA0tVLHw (envelope-from ) for ; Fri, 22 May 2020 08:56:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sNW3JtOTx171HgAAB5/wlQ (envelope-from ) for ; Fri, 22 May 2020 08:56:51 +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 5CFD69402A2 for ; Fri, 22 May 2020 08:56:51 +0000 (UTC) Received: from localhost ([::1]:39160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jc3U2-0000Sl-Bj for larch@yhetil.org; Fri, 22 May 2020 04:56:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jc3Tv-0000Sf-3h for help-guix@gnu.org; Fri, 22 May 2020 04:56:43 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:46541) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jc3Tu-0007KG-8H for help-guix@gnu.org; Fri, 22 May 2020 04:56:42 -0400 Received: by mail-ed1-x52a.google.com with SMTP id f13so8137957edr.13 for ; Fri, 22 May 2020 01:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version; bh=hvUMlO7SPdcmXbtCqs2pfobX0Grsfn3kvTEX8kT5aEM=; b=Lj+BXGKyMN31qjkUXix7ehIh5k9RHTxowJV8GQdp4IDnl4z62Hu+pvLLPoOj5dGpRn H3xtczFYViwmgwGNJqsktGv6qjx0Bs0AV9vA4Zl/oFwgdmD6ovG1D7hQOflgFdNFzkyB z7Wpk7fBwv57/x/KdCRKsG7zBO0vOqNR4JLDdBtAnQ8ApQi3aATcv5gBXbwZIfxmWwLw jVfyfZ9tco2+rMTFaybCpuNPazF6rsQglyRqx4oPc/FSNiuUr/Glh/E2BvRTHmA4+YNv p4cW7I0tVqSEjWMQPkM3zJn85FrM81a+6hVnc2YxiBh7TeiN4AwVzA359zXGd9Wnw7IZ wp5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version; bh=hvUMlO7SPdcmXbtCqs2pfobX0Grsfn3kvTEX8kT5aEM=; b=PvmoHgrwtVqCWcFehUKst7rt3NfjK9j3c8HbmISED/8qqHYu3frpjK+eBXy12EPG7t XRcea6re+Yof95Oj2atBLdTlaqKDkMwURPz/QfhnIqbdCxI/iQ6PaJ1Z/AunXwoDyQA5 oWgv6PWha+ghicnzq8f07WkEJ/qfbk+/ELNJJhv1NsdrDkH7VR2yX52KKEJ94DZ5V1wE oNMpMYgizVNCksveJ830iCnkcDqaREurXjucMpg6xlNZ5TyOqptj9oNS5ZmnCf+3gTx4 fovHfkF2Hstgy6Pc1Ub3yo2ZllAZAJbMR2Mk0Qn0luZJz/oXMVDOI9rkBeN7nNqVN6o3 /xIg== X-Gm-Message-State: AOAM530pjEk7Lf9OfEy8VyJS38h2gldhd1Vo5qbertDxMPkV7K7hy9BP zDClyM/msI6AcJrxBaWOEHY= X-Google-Smtp-Source: ABdhPJyZorceVz5U3n6pccNBmr8Uiv77CVH+LKWSDSwLS8ssCzyAOcxEoF5ohJUbEF3JU1WJxUWmqQ== X-Received: by 2002:a05:6402:1bcc:: with SMTP id ch12mr2278044edb.22.1590137799872; Fri, 22 May 2020 01:56:39 -0700 (PDT) Received: from watership ([2a02:a03f:643c:5900:f200:b379:1817:18a7]) by smtp.gmail.com with ESMTPSA id a15sm7173828ejr.90.2020.05.22.01.56.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2020 01:56:38 -0700 (PDT) Message-ID: <015b220bfe8fcca30854a53236b95bb6d6cc48af.camel@gmail.com> Subject: Re: Appropriate way to use Guix API from a Guile program From: Alex Sassmannshausen To: Konrad Hinsen , zimoun , Marius Bakke Date: Fri, 22 May 2020 10:56:37 +0200 In-Reply-To: References: <17234059da3.b5e01d1e8240.9032082708652182693@zoho.com> <878shla245.fsf@devup.no> <17238fa6f3f.1085042d523521.3962992471488424781@zoho.com> <87tv0980yc.fsf@devup.no> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-Jq2jwGXiqLChaGpXJedk" User-Agent: Evolution 3.34.1-4 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=alex.sassmannshausen@gmail.com; helo=mail-ed1-x52a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Help Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Lj+BXGKy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -2.31 X-TUID: 3xB+NR4gDcsR --=-Jq2jwGXiqLChaGpXJedk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, On Fri, 2020-05-22 at 09:43 +0200, Konrad Hinsen wrote: > zimoun writes: >=20 > > If you feel in an experimental mood, you can try the Konrad's patch > > [1]. It sets up the PATH accordingly and hides all the internals. >=20 > In particular it hides implementation details that are likely to > change. A look at the path in >=20 > ~/.config/guix/current/share/guile/site/3.0 >=20 > should be sufficient to suggest that not very long ago, this was >=20 > ~/.config/guix/current/share/guile/site/2.2 >=20 > and scripts have no way to figure out which one of the two is > appropriate on a given system. I agree with all of this, and no doubt the ability to start Guile scripts through Guix as ad-hoc ways to run scripts is useful. I can't help but think that it would be really useful to have a way to inject these load paths into the general user environment, in a way similar to `guix package --search-paths', so that the currently pulled guix can be just another guile library to be used on the system like any other. Would there be downsides to this? Alex --=-Jq2jwGXiqLChaGpXJedk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iJUEABEIAD0WIQSaK0Ae0AEGUBWEuqyLxPRHboqOAAUCXseTxR8cYWxleC5zYXNz bWFubnNoYXVzZW5AZ21haWwuY29tAAoJEIvE9Eduio4A9aMBAJ5a2qmkDTLgIBv4 UC7lVnT0hPz4D8CdCiNyrKLdNTihAP0U/2imF+GqJ4xVXgBA1zl4wVOQOKwbL3Nt D/FLwcbDEA== =vS76 -----END PGP SIGNATURE----- --=-Jq2jwGXiqLChaGpXJedk--