From patchwork Mon Aug 21 19:29:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 53086 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BD09D27BBE9; Mon, 21 Aug 2023 20:30:37 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D726127BBE2 for ; Mon, 21 Aug 2023 20:30:33 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYAbN-0007Tq-Ul; Mon, 21 Aug 2023 15:30:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYAbA-0007Sf-Uv for guix-patches@gnu.org; Mon, 21 Aug 2023 15:30:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYAbA-0003YA-Ji for guix-patches@gnu.org; Mon, 21 Aug 2023 15:30:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYAbC-0003m7-Jt for guix-patches@gnu.org; Mon, 21 Aug 2023 15:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65439] [PATCH] maint: Support `guix shell' in Guix's git archive with Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Aug 2023 19:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65439 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65439@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169264617814425 (code B ref -1); Mon, 21 Aug 2023 19:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Aug 2023 19:29:38 +0000 Received: from localhost ([127.0.0.1]:57869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYAan-0003ka-I2 for submit@debbugs.gnu.org; Mon, 21 Aug 2023 15:29:38 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYAak-0003kK-Tv for submit@debbugs.gnu.org; Mon, 21 Aug 2023 15:29:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYAac-0007MI-V9 for guix-patches@gnu.org; Mon, 21 Aug 2023 15:29:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYAac-0003Ue-91; Mon, 21 Aug 2023 15:29:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=AKg1fRjHvJWI9B5pIXnW7o67OKenvm8W5aVRm+m+n5c=; b=BL82dHKMFR1RzC bu5VSCvFtJ4YkNE4UwYXGpqcJ62Jf42QxdHTud39Ysd0GSWR3tRFxLgA1PqnyrOPPoa92CAjcQ1ni q3ih4SkCs/piGv2DlG58u0YaTykZJ4lWVKZnX1rlS3A30t4wpOI04MFfcQ7xy86UxKKqCss99YWLd /jnV08RD9zMD4+1EQrcnM4/L17lbG2Z6OAMqoxqB9CRKOYBgtiZx99UYae+A+zRLDpHV7Dbpf7UEH llMNGL849sK1fWMuOwRRywjIlYEH3PN1F2EXtEJ0ha2oR+dEndzdk9fc6WHm8pHQq978NRkWUm/07 mMMvW9Os0+NcWQDjij5Q==; From: Janneke Nieuwenhuizen Date: Mon, 21 Aug 2023 21:29:15 +0200 Message-ID: <87y1i48a9g.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi! A couple of months ago I stumbled upon this awesome-looking guide and today I finally found the time to setup direnv and emacs-envrc with Guix for my development projects. Really should have done this sooner, it's a huge step-up from M-x guix-set-emacs-environment (or in avoiding to do that run make in the shell and lookup line numbers manually -- why does ffap not respect GNU-style error messages, btw?). Most everything worked...except for Guix; as Guix git does not support `guix shell' ootb; you really need your own local hack or have to type something like "guix shell -D guix". In the attached patch I share my local hack `maintenance.scm', which allows this generalized .envrc --8<---------------cut here---------------start------------->8--- eval $(guix shell --search-paths) if test -d doc; then export INFOPATH="$PWD/doc${INFOPATH:+:}$INFOPATH" fi if test -f pre-inst-env; then source pre-inst-env "" else export GUILE_LOAD_PATH="$PWD${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH" export GUILE_LOAD_COMPILED_PATH="$PWD${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH" fi --8<---------------cut here---------------end--------------->8--- to also work for Guix. Greetings, Janneke From 84bb463a70bacf93e74fe6c0f14932149acd5383 Mon Sep 17 00:00:00 2001 Message-ID: <84bb463a70bacf93e74fe6c0f14932149acd5383.1692646073.git.janneke@gnu.org> From: Janneke Nieuwenhuizen Date: Mon, 21 Aug 2023 20:57:12 +0200 Subject: [PATCH] maint: Support `guix shell' in Guix's git archive with manifest.scm. * manifest.scm: New file. * Makefile.am (EXTRA_DIST): Add it. --- Makefile.am | 1 + manifest.scm | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 manifest.scm diff --git a/Makefile.am b/Makefile.am index 738532f839..1237968ddd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -692,6 +692,7 @@ EXTRA_DIST += \ ROADMAP \ TODO \ bootstrap \ + manifest.scm \ build-aux/build-self.scm \ build-aux/check-channel-news.scm \ build-aux/check-final-inputs-self-contained.scm \ diff --git a/manifest.scm b/manifest.scm new file mode 100644 index 0000000000..14473443ed --- /dev/null +++ b/manifest.scm @@ -0,0 +1,32 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Janneke Nieuwenhuizen +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +;; GNU Guix development manifest. To create development environment, run +;; +;; guix shell +;; +;; or something like +;; +;; guix shell --pure git git:send-email openssh + +(use-modules (srfi srfi-1) + (guix packages) + (guix profiles) + (gnu packages package-management)) + +(package->development-manifest guix) base-commit: 4c7627dfec88350f9a1705e9527c38dd41506f8b -- 2.41.0