From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uHPgOaoBM2PqHAEAbAwnHQ (envelope-from ) for ; Tue, 27 Sep 2022 15:59:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uMbnOaoBM2OXfAAA9RJhRA (envelope-from ) for ; Tue, 27 Sep 2022 15:59:06 +0200 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 A1A1428C3F for ; Tue, 27 Sep 2022 15:59:06 +0200 (CEST) Received: from localhost ([::1]:56590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odB72-0001uC-Lm for larch@yhetil.org; Tue, 27 Sep 2022 09:59:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od9MN-00008K-DP for guix-devel@gnu.org; Tue, 27 Sep 2022 08:06:49 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:59226) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1od9MH-0000PO-75 for guix-devel@gnu.org; Tue, 27 Sep 2022 08:06:46 -0400 Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 28RC6XkJ011905; Tue, 27 Sep 2022 08:06:37 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 28RC6XkJ011905 To: zimoun , "Thompson, David" , guix-devel Subject: Re: Emacs integration for 'guix shell' In-Reply-To: <86wn9puqj7.fsf@gmail.com> References: <87czbiugxn.fsf@laura> <86wn9puqj7.fsf@gmail.com> Date: Tue, 27 Sep 2022 08:06:32 -0400 Message-ID: <878rm5m37b.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Tue, 27 Sep 2022 12:06:33 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" Reply-to: Olivier Dion From: Olivier Dion via "Development of GNU Guix and the GNU System distribution." X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664287146; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=u3XuN6NwbdM/IwJTp4RfwIbF5q4gp1/ZskgWLhhyTmk=; b=uXeKatiQP9Q1rvdoPWfUNuxzqJBI6IFZcndeugZY5jizL//P3csczDPwqKXQr+zVSRQk/c OMX5AhOhx0ZrbIp9sN6Z4VjqUC3heIz4vFVvUD7tuD6vNtrC8mUJk2oaTtoU4v34P7sL2x EiBU4r58cpDQzY7NY+NThQG9mvwPHh5VLOWHHqorOcePcA9tFeA1B178/OY+ag5AKLpuk3 CLIv4g4I4MZ8RkhHhMEXBs1Meka6BxWNPE7e6is+jyDhaWITODgwu57SPp9/JUBHnLlbsf wDdVXo4As9iuL0Z1m3XRF/m5bQZCGja8DlUcMSAn9EfxJPrj6q3pqtIK/zPZWg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664287146; a=rsa-sha256; cv=none; b=Sb9fvdo5uLEcsSnk3yJkSoLFpHZ8BYOKRzYCpu8H4nMSR0nuZX6ugjSTtP0tJcwG1gXfFY qsh5m3QnPxTxT63S+9I2o4Z7KvWJB5ujhrHz5OT8NHnxhWqRzhW1fn7aDQ0yifl30rIKBs e9nYbKQY2chAbwU+xMzWKs2cuuJvZRoEG06WMZ0PNpqZg1nepwptS5I1km9ZCePXhHOR2G GlPq9tZQcJSl27UDfff6zqr8RLfC1IhCWqqcoJamqcXrZx7lxIIcadWKZmpgFJslJt3096 B2Jky9Wz3L44+OfR1CAoeCR60YhAPYXHe78MFzwRORMctB0DuYDz/mrnLoatJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A1A1428C3F X-Spam-Score: -1.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: H9KRFwsdRXEt On Tue, 27 Sep 2022, zimoun wrote: > > --8<---------------cut here---------------start------------->8--- > #!/bin/sh > > guix time-machine -C channels.scm \ > -- shell --pure \ > -m manifest.scm \ > -- $@ > --8<---------------cut here---------------end--------------->8--- How about: --8<---------------cut here---------------start------------->8--- #!/bin/sh guix time-machine -C channels.scm \ -- shell --pure \ --development $(basename $(pwd)) \ -- $@ --8<---------------cut here---------------end--------------->8--- Of course you need to A) have a channels.scm in your project and B) have your project directory named after the package's name in your channel. > where manifest.scm and channels.scm are kept with the Git project. I > prefer to pin a specific Guix revision to avoid bad surprises. :-) Well, > in a project, I just run: > > guixify make # run make using the Guix environment > guixify # enter in the environment > > > I thought to write an extension but I am not convinced by the interface > I want. :-) I was using channel too before! It felt good to pin dependencies to a version so it does not break while you're developing. Howeverff, I felt that the time-machine was taking enormous time everytime a push was made to a channel. My biggest usage of the channel was to have the definition of my package before it was merged into Guix channel. But this could also be used for a development version that differs. -- Olivier Dion oldiob.dev