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 mMojC4rQLmKJjQAAgWs5BA (envelope-from ) for ; Mon, 14 Mar 2022 06:20:10 +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 kBmzB4rQLmKSIwEAauVa8A (envelope-from ) for ; Mon, 14 Mar 2022 06:20:10 +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 D022AE58C for ; Mon, 14 Mar 2022 06:20:09 +0100 (CET) Received: from localhost ([::1]:59778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTd7o-0000kF-V0 for larch@yhetil.org; Mon, 14 Mar 2022 01:20:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTd7j-0000hq-6H for guix-patches@gnu.org; Mon, 14 Mar 2022 01:20:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49899) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTd7i-0001Fy-Sp for guix-patches@gnu.org; Mon, 14 Mar 2022 01:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nTd7i-00029E-HO for guix-patches@gnu.org; Mon, 14 Mar 2022 01:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54375] Mutable guix shell environments Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Mar 2022 05:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54375 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Charles Cc: 54375@debbugs.gnu.org Received: via spool by 54375-submit@debbugs.gnu.org id=B54375.16472351928237 (code B ref 54375); Mon, 14 Mar 2022 05:20:02 +0000 Received: (at 54375) by debbugs.gnu.org; 14 Mar 2022 05:19:52 +0000 Received: from localhost ([127.0.0.1]:43796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTd7Y-00028m-IQ for submit@debbugs.gnu.org; Mon, 14 Mar 2022 01:19:52 -0400 Received: from mail-ej1-f68.google.com ([209.85.218.68]:35466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTd7W-00028X-Ru for 54375@debbugs.gnu.org; Mon, 14 Mar 2022 01:19:51 -0400 Received: by mail-ej1-f68.google.com with SMTP id yy13so31350031ejb.2 for <54375@debbugs.gnu.org>; Sun, 13 Mar 2022 22:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=fs8reemqQdig/6+xoPThB6SWmXtv++9uHnUhPx7ADOo=; b=R/iMi22JC3T3euPWaTRgeLL6ERKhM75+Awp65ElQweVe54I7odHYR+EEbY9hhFccTT oMBR0kMt5GYGRg5cmkkyn6t36VSUqW9ExAkJuwB1tW8NbyWP7fMCOB93gUuasOd0IB79 r7F0lkOp2LVpvIX7I2YsY67CpzlrE3rG595nE3J5H3NUMyg/pssH6CiLGuEON71UM+R6 CuxiTqa5psj1JHFrmPMfOBAnLcdGArqJ+U6TmJGCvzzaZt4ghtDPK/SIR/56rrPv/qfm DoVK73aUCBozvwprIogkE7t6fnjloKMUSWwIqcf5V6EdzkNtBH9r5dLc7JELDMmzVpid q/6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=fs8reemqQdig/6+xoPThB6SWmXtv++9uHnUhPx7ADOo=; b=2t9j2fS03G3EgwirJhs8FU9s6D3T94Y9yJo+M6mXDd/z/VHx2awPs7LGdRWGeZQHfK jHvHiJ//YvMhggNcSbVfA7e3kliNiLM99quVZLr2tnw0iLrKhmkZCc1irXPOWd/7zbnN /2B4chnaO4KuUPXJ5Xu+SIqOm5tPK2PSQ5a1GZrm98TRncTiy7m8ftCSNMA7oEvIGPfl BKQW8EbCc0K03fxKa/zes+6AuUSrsRD/qZVJ4biFvIlbksB/GnoMacS3Xjjo0B0XWuvE TgbAcoTBVeFBh46Xoukra4r0+nZSAls0pY2q/NEazuOb9sIQ2xAXSWoiZN055SwHWmYS +ALg== X-Gm-Message-State: AOAM531ls2C5CLMca3u5e45LGqo45melG25ERTU9lop84+Rc9bCpi62S NjhQDznB8NlYdv+DW9NW+E4= X-Google-Smtp-Source: ABdhPJw4QGOD0hz5u3cmASqqp9T67QFqjCV2bXxd40CMKi/ufaOEZhUxX31QQl/mcel7qzSgg2V2UQ== X-Received: by 2002:a17:906:2ad5:b0:6cf:9cca:d9db with SMTP id m21-20020a1709062ad500b006cf9ccad9dbmr16906760eje.252.1647235184973; Sun, 13 Mar 2022 22:19:44 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id z17-20020a50f151000000b004162ecc0c9fsm7296014edl.68.2022.03.13.22.19.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Mar 2022 22:19:44 -0700 (PDT) Message-ID: <73d3dfc2ceebd68f6afc9af6ae96391933592e07.camel@gmail.com> From: Liliana Marie Prikler Date: Mon, 14 Mar 2022 06:19:42 +0100 In-Reply-To: <9QXS8i-Ylzc9pxojB3WT0LMPFqm00N-jwx08sZnPLn7KmSvC85K7jvgGmQTcg138EEa6Aqh7W4n87KXkZvxJyt--ze0rCVnGVG2SMskLgNU=@protonmail.com> References: <68a3e146199e408d50e4ed751e1b7000364704f5.camel@gmail.com> <9QXS8i-Ylzc9pxojB3WT0LMPFqm00N-jwx08sZnPLn7KmSvC85K7jvgGmQTcg138EEa6Aqh7W4n87KXkZvxJyt--ze0rCVnGVG2SMskLgNU=@protonmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647235210; 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: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=fs8reemqQdig/6+xoPThB6SWmXtv++9uHnUhPx7ADOo=; b=tumytVU3l31Jz8roPQF5WtmGBW2bFXbprZNduRh38DRwBpuhBUVjL7MUE1Ri991Kn+5kqL G3kIInK07nlRKuVs03Qtn5agFB1H1IBtPuNTd+iwSQrEqUVdqiyYxPLofnUe52iUQ1MZ2j zCWeZTEmjS2kTGJN5DmRcg+7euARdJq9zB9RN93eVV29VNKP5cjdBI/7jkvthiY84YoSIy nss24x6hpIZBtdCSgQtpPrKViNY0NIha/akC5Do7qvMEq8NluT38nWVCZayqo5RZVuTzDH GaFMrwxeU+PwFCOspmWoJCBxRpNDmAoVxHjwb5yM06yVzGFfyo+OYLXyOIJbVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647235210; a=rsa-sha256; cv=none; b=gShVp10lLh9eQY+NxZiekinIz+8Z+B/ycu1VHgdXmBVa4J2nQECRtzzsvEqbMKYDRmxFB8 B95oiWPN6m5VR7IkrAH0WJ/F/9MqhCB+fWAI6y7to5tP6gqhM0fQrh9HCnAAQ9SC68u3mu IuvxE7YjJ+OCCObxE6ZujCMF1fhwSEhCHxc75ZYEcFe1dyp6lfZAvHx6vANvGlZ1cOGev4 Zj2xVHlwWQKvL7tfwrIeyrcIzfbsBISUA0k0yyEwPb1LryaddTPLriqqOu42vOGJsMFbfa jVCEjZQIcpu0HHzrx4vCKx8a5hp71atqmbEphOUfaFVU/BQwVZM6xUXI6+uvBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="R/iMi22J"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 5.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="R/iMi22J"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: D022AE58C X-Spam-Score: 5.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: pS3iWw72wCsN Hi Charles, Am Sonntag, dem 13.03.2022 um 23:38 +0000 schrieb Charles: > Thanks for taking a look Liliana. I'm glad you like guix shell > detecting a local profile. > > > $ $SHELL > > $ GUIX_PROFILE=/path/to/profile > > $ source $GUIX_PROFILE/etc/profile > > This is basically what I was going for. I just find this useful to be > built in. When I think "guix shell", I think: "make an environment > where I have everything I need". If I want to adjust what I need, why > do I need to restart everything from scratch. If I did not know about > guix shell and did all my development using ~/.guix-profile, this > functionallity would already be available. Yes, but it'd also be broken af. You are focusing on a very particular use case and ignoring all others. What if instead of just "a package" I wanted to add or remove a package that defines a search path, e.g. Emacs? In the adding case, EMACSLOADPATH would not get defined and in the removing case it would still linger. What you describe as desired functionality is not at all well-defined. Using `guix shell --profile' on the other hand has the same semantics as the other `guix shell' commands, and is thus imo less confusing once you start to think about it. Cheers