From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uJ17H3x4k2MbZgEAbAwnHQ (envelope-from ) for ; Fri, 09 Dec 2022 19:03:40 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wF+ZHnx4k2PbJAAAG6o9tA (envelope-from ) for ; Fri, 09 Dec 2022 19:03:40 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 8E0D63B8E6 for ; Fri, 9 Dec 2022 19:03:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3hi9-0006Bu-UX; Fri, 09 Dec 2022 13:03:01 -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 1p3hi7-0006BF-VP for help-guix@gnu.org; Fri, 09 Dec 2022 13:03:00 -0500 Received: from dragonfly.birch.relay.mailchannels.net ([23.83.209.51]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3hi5-0001Hy-D2 for help-guix@gnu.org; Fri, 09 Dec 2022 13:02:59 -0500 X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id ACAAD3E141E; Fri, 9 Dec 2022 18:02:36 +0000 (UTC) Received: from pdx1-sub0-mail-a224.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 414EB3E1D3F; Fri, 9 Dec 2022 18:02:36 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1670608956; a=rsa-sha256; cv=none; b=KLuwYKWAnFYXsC0xSaoBNhjdrTSXYti4+m0j35eeEpQQ7Mkx9FU6SoLrhqjGTsYUNQ/eEA Hgb2pi0pzrB+FlIUf2Fgiac6W8/lPwbdtPFAx2YyM6na58U3kBzySM4Oa5UYTgUZjTUtxT PHWu0c0Al5EZIW3F/FG3l15/1bQb/gcev8+CVcXFV3bVCHplziL3FPYjSHmeOErOlGv8Pp bFGY4HhYjg/E8HiZgMPc8JCp2o/n729QSwzxaf+hElAc5O2NFlZNUhzZrMuO+3iL0tEhPB jtkDTNJ6NvS1Zh4jrn4gaufKINweLeXNU2dHm+02dm4fglBff7/tST4+ZlFgww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1670608956; h=from:from: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=X7nu+bPD1tcUmTweAkv+tnOg6SUJpyocoPcDHwSTXDQ=; b=wq9m93YhO1+GlQJ28g0L8wDJrPZGEFbjziEVabb7CcIO7QCxqWu+azYJTm8dWwPqVCzU6W JtwucKyYkAwbjeSAsXJQodzxwtgWmieX09o7ozzEeQ8JG5tatcm7uoigjoztSG6vlIXOjs ibtOF9gkAmkxWBZutKLCg30jF4fQOyKUeopzlVLGFXjaysZcUqbXXQafLdmCJPy6duslxJ 94ccxxGstzhOhWOh5TpgArtAEnn98Z0c6BTMo483W0mdmCk3nkSIXkfyA6KZllg7/jC6OC luqe608csxirfTWccXRANd1VfHg+/OOui1/3mq3fqSz4iOhLJWSYK+7A/zCh4g== ARC-Authentication-Results: i=1; rspamd-85f95c7974-2c6fv; auth=pass smtp.auth=dreamhost smtp.mailfrom=peter@polidoro.io X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|peter@polidoro.io X-MailChannels-Auth-Id: dreamhost X-Squirrel-Irritate: 2f86540b41595b95_1670608956526_1229697471 X-MC-Loop-Signature: 1670608956526:3104902824 X-MC-Ingress-Time: 1670608956526 Received: from pdx1-sub0-mail-a224.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.99.229.8 (trex/6.7.1); Fri, 09 Dec 2022 18:02:36 +0000 Received: from minotaur (unknown [206.241.0.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: peter@polidoro.io) by pdx1-sub0-mail-a224.dreamhost.com (Postfix) with ESMTPSA id 4NTJlH2DXmz2K; Fri, 9 Dec 2022 10:02:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1670608955; bh=X7nu+bPD1tcUmTweAkv+tnOg6SUJpyocoPcDHwSTXDQ=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=Ibu7+q7A+MsDDTR+fxgOgelX5c3QoQAjN4qvNmjhNuzfy6O6MDeICNcThI9m1+hMm w9QyISIQozu79T0zAEqOABYdKeJZSJkzAcMgNw8iFg1+lHlxKdiYBESiBfeks3a1qU cjFe3jsdRYP+fq8PkJvtOm0du8HE2n2kiPF+oDYCx3WsVX8V4GHRH32R1g3gNBPYYK nYk8vliMuqswPujDxFInJdfXwLgBmHWwMmJ1k7mXAGF6EjduogZhdeHm5PWIwGwJxY KMM+6hJ6RXw+HWHESmI6dgzlCeR7V10XjP23pGU9MdhcAvgbDmlxycVLOcom8m6m27 0jxQkwFCVmzrw== References: <874ju7fe2a.fsf@polidoro.io> <87zgbzdy4g.fsf@polidoro.io> <87edtbdpmo.fsf@polidoro.io> <86ilimgop6.fsf@gmail.com> <87a63ydk95.fsf@polidoro.io> <86r0x9g2bx.fsf@gmail.com> <20221208223048.00edc36c.koszko@koszko.org> <86359pa45q.fsf@gmail.com> User-agent: mu4e 1.8.11; emacs 28.2 From: Peter Polidoro To: zimoun Cc: Wojtek Kosior , "(" , help-guix@gnu.org Subject: Re: Using Makefile to run guix shell? Date: Fri, 09 Dec 2022 12:46:21 -0500 In-reply-to: <86359pa45q.fsf@gmail.com> Message-ID: <875yeke9qo.fsf@polidoro.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=23.83.209.51; envelope-from=peter@polidoro.io; helo=dragonfly.birch.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670609020; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=X7nu+bPD1tcUmTweAkv+tnOg6SUJpyocoPcDHwSTXDQ=; b=RF3b5S9dNuv6OW1J3MwxE1mOb1idvbtiIAho9so2pBUYyOTn9aSlbwPRA5IMg0Cj6XONjZ j6XOMcyrOGD2Hy+l3dVd10yAVlLs8VKMPjNCSQkAHuVUeXOssktoBaCCAyFJEBKyy8wxUv JnZiLp6YWt3VGm0DqIpT2+vup8p2QcXykNVEbc319nvAr4n2w5e6jalOtFoDItTFvSCaG3 RNiqM1YpG4yCdv1d7lbeiCvueioW/0tFnEuFFpFFf9g7ojN4BdV/cBXTrB5ASoio7Z4tMU oH5dDyqPc0MyTBDGLIZNwRbb2dpGDPNwKS700Jawf/RxZpp3KiXAhVfvJcplqQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1670609020; a=rsa-sha256; cv=pass; b=eXU2bytBm+63zaiBIeJTlIoCPHOvHvykT/MOw35dKsmBdeDev1KAcer7YbElH7DLbT7ZHb A57mSsrOToCKKylJ7Zf0J55vUE4QeBSn1j5Tousuzk/lafBej5xjNj/9jyejlZGrZx30id epDHVq6BamGaSZyqIuDCJzV+LzGAeVuJZaIOp2LXrFPAKA1NR1VtlGDRvjnfRGCAqTfZRP X8NWfKabbm7n/0Fxl0DgGEtUTikkzAQ0ssmS/N+wqORFgpRBXoJquEl/K65FUdp3dTSxss C3oF43cbklusY4ILlUwNpwZOBIDXhK4OrGhl3r83CH156AtPA8MuDkxFkOB8lA== ARC-Authentication-Results: i=2; aspmx2.migadu.com; dkim=pass header.d=polidoro.io header.s=dreamhost header.b=Ibu7+q7A; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=none; spf=pass (aspmx2.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: -1.95 Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=polidoro.io header.s=dreamhost header.b=Ibu7+q7A; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=none; spf=pass (aspmx2.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: 8E0D63B8E6 X-Spam-Score: -1.95 X-Migadu-Scanner: scn1.migadu.com X-TUID: un0QkPhfnUQU zimoun writes: > $ cat Makefile > stuff: > which make > > guixy: > @guix shell -C which make -- $(MAKE) stuff > > $ which make > /usr/bin/make > > $ make stuff > which make > /usr/bin/make > > $ make guixy > which make > /gnu/store/dp8bar2xgzwz1yfm9lcafqn3vhs2cjqc-profile/bin/make > > Cheers, > simon I just watched the excellent 10 Years of Guix talk "Guix REPL=E2=80=94to=20 infinity and beyond". I am not sure if you are the same Simon, but it made me wonder if=20 using guix extension could a nice way to solve these sorts of=20 problems. Could I have a set of guix extensions local to each project so=20 that I can run commands like: guix serial-shell PORT=3D/dev/ttyUSB0 Which would really run something like: guix time-machine -C .channels.scm -- shell --container=20 --expose=3D$(PORT) -- make PORT=3D$(PORT) serial-shell Where some Makefile defines serial-shell: serial-shell picocom -b 9600 -f n -y n -d 8 -p 1 -c $(PORT) Maybe the path of the Makefile would need to be specified in the=20 extension somewhere. That way non-guix users can just run the Makefile and guix users=20 only need to use the guix command. Or maybe the extension could=20 call a shell script if that is better for non-guix users than=20 running a Makefile.