From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wKmIA7+Ak2PSCQEAbAwnHQ (envelope-from ) for ; Fri, 09 Dec 2022 19:38:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UAKmAr+Ak2PzcwAAG6o9tA (envelope-from ) for ; Fri, 09 Dec 2022 19:38:55 +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 D299217EA6 for ; Fri, 9 Dec 2022 19:38:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3iGX-0000tI-Ce; Fri, 09 Dec 2022 13:38:33 -0500 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 1p3iGT-0000st-9r for help-guix@gnu.org; Fri, 09 Dec 2022 13:38:29 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3iGR-0005YF-DI for help-guix@gnu.org; Fri, 09 Dec 2022 13:38:29 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id AECB55C00BC for ; Fri, 9 Dec 2022 13:38:24 -0500 (EST) Received: from imap52 ([10.202.2.102]) by compute1.internal (MEProxy); Fri, 09 Dec 2022 13:38:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm2; t=1670611104; x=1670697504; bh=5Nz2znt9cQj8WKDPtaIo6Ww5+ N1er8VsnKur5B5E3Ng=; b=G/l47h9Cahe+mnkN5iSYozavZbS1pxdzsj1MbiWPy 6wV8/4ToCMjvfbEo1pEohbnjbCqx41ixfdcT1ylukvj3u3elGGuUb/5D/1Qy7f7g bhixRCgwz2fjkSBleBY0E5qfdbpI0dMtCI5k8Pyna3UPnNRTJzQAv7dUTQMi47As Dlx7DaJIRo8LByzDiFa0LXBhiNX2fWSP0lOSNOEMKesvlSjx3aROCDmLPVOZ2DxW ndkTwBFaq752kd+MHIm51RdVlnahBFpDaDbXIaZqUB7iVh7KMpzCiIVlDxOww4AT qOEeIPJyPUoYrrtx6g8z75mG+J2ypNqlZi/gq8593TXPg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1670611104; x=1670697504; bh=5 Nz2znt9cQj8WKDPtaIo6Ww5+N1er8VsnKur5B5E3Ng=; b=r8ni9ZWq5WdX3b3X3 04LAJGC40b2GLuqnGAoORDhD63rJGm9n6efd9hQ2MfYdpH0pXbRVaXbuzj3j45vT t1hXbD55cbnQyEavWhvHmWY5wPrAW664XlCMJzV/NYJydir62c7aQC7TWBvbGONz XuAMN/RvD38abpK9pZLNBqGLuOGidAto8UZgHDx/rt/rtJE+7wBDAo55OEESk9dN qE6Fchv6IBNOq9ZlrUVdB/goj1rQ2D6ux8MAiF72OGsnMIO8//pdIVe2QlM+q5zc y/Jb500Ly+PQf0j9PezuOcg0DVJeTO2/OBwWZSc8f9zM24oox1zs6IsU2MeZa5TJ Ahjdg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddvgdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepfdfrhhhilhhiphcuofgtifhrrghthhdfuceophhhihhl ihhpsehphhhilhhiphhmtghgrhgrthhhrdgtohhmqeenucggtffrrghtthgvrhhnpedvve eugfeivdevvdevudffudeggfeitdefkeeuvedvgfetieejveeuheevvdehkeenucffohhm rghinhepmhgvthgruggrthgrrdhorhhgpdhnihigohhsrdifihhkihenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehphhhilhhiphesphhhihhl ihhpmhgtghhrrghthhdrtghomh X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 69EBFC60091; Fri, 9 Dec 2022 13:38:24 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: In-Reply-To: <87zgbzdy4g.fsf@polidoro.io> References: <874ju7fe2a.fsf@polidoro.io> <87zgbzdy4g.fsf@polidoro.io> Date: Fri, 09 Dec 2022 13:38:04 -0500 From: "Philip McGrath" To: "Felix Lechner via" Subject: Re: Using Makefile to run guix shell? Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.26; envelope-from=philip@philipmcgrath.com; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org 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=1670611134; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5Nz2znt9cQj8WKDPtaIo6Ww5+N1er8VsnKur5B5E3Ng=; b=EcFjvcd5A/0zhyEegpbGzLsIGE8umQs8//dauAlvZH8YPpT/Um1dAN8zgl1QNEMAyc76FR tiK8t/7xSCn1Ql3+KtVQIpInNHRuqbR1VqtJjNyVJT/Q4j3qGmIHWaucx4KA1PUJSd7Eai 0J3bPSLSsKAwLMru5k1hDaHTAVcqMTC04gvs4UBqgUQVDesJuBEdFPIrPJtWRII3zHjh35 HwaG9LxeDTxAW8FPprEFLm+VO0HH2VRUvKJJ+QIUaVsrAX4YSEyx7jKGk6WjoHkH2HmjX/ 7Ossfv/zu6z+CmoHJoHGXYrgoWAWQRo0CgmGwb51ciK7Rk5g/D7s9itYAEiTWQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670611134; a=rsa-sha256; cv=none; b=OvdN5kMVgH184UIQOi+xioWxbeLuoLiYzx7wRPZ85vEwafAB/kdHAU+BbUQ2DOlluTXCz/ 1yHsN8sDVNJoSQznLus0t5lcn8rGL/jdaosSwFgTMHaMQYZUmFSEX/ef3hYwyFTtNtBGSO ol/yZk/zF06xXIEKZC4drw51tdRv/dvaWQSoMuWLyrMjOMOiqeBhJBoGd7EKmcdx+6Vt0R eiNE5c8B+1oSeZpEPboBNdMhEUBWGADMde09KWMtTLagk7ggCjHuD+CwMd/RBnnkvshngI 7oIbWpeu0BuQBTOIioHzPDgTr5Jp45QK+ptnfd1+ySDYA54oEZLsp41nZ7mqpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm2 header.b="G/l47h9C"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=r8ni9ZWq; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm2 header.b="G/l47h9C"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=r8ni9ZWq; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D299217EA6 X-Spam-Score: 2.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: xJ1MZjYRVt/O On Wed, Dec 7, 2022, at 10:26 AM, Peter Polidoro wrote: >> And then all you need to do is run ``guix shell'', and it will=20 >> automatically >> pick up that manifest or package file. > > That works well for just the "guix shell" command, but what if I=20 > want shortcuts to a whole set of commands? > > For example, I might want a command to automatically generate=20 > project metadata from an org file running "make metadata": > > metadata: > $(GUIX-CONTAINER) -- sh -c "emacs --batch -Q -l .init.el --eval=20 > '(process-org \".metadata.org\")'" > > This seems to work well, but I just wondered if putting a Makefile=20 > into every project root may cause conflicts for some build=20 > systems. > > Is there something better to use than make for such command=20 > shortcuts? The ability to to this sort of thing is one of the interesting aspects o= f Nix Flakes. See in particular the =E2=80=9Capps=E2=80=9D output attrib= utes and the `nix run` command: https://nixos.wiki/wiki/Flakes