From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 14 01:19:52 2022 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> Subject: Re: Mutable guix shell environments From: Liliana Marie Prikler To: Charles 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 54375 Cc: 54375@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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