From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ME4ZMWL5kWO4aQAAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 15:49:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +KQZMGL5kWOiYgAAG6o9tA (envelope-from ) for ; Thu, 08 Dec 2022 15:49:06 +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 C8349BB60 for ; Thu, 8 Dec 2022 15:49:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3ICb-0007Hd-7F; Thu, 08 Dec 2022 09:48:45 -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 1p3ICZ-0007Gv-JX for help-guix@gnu.org; Thu, 08 Dec 2022 09:48:43 -0500 Received: from dog.birch.relay.mailchannels.net ([23.83.209.48]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3ICX-0002yJ-RE for help-guix@gnu.org; Thu, 08 Dec 2022 09:48:43 -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 9A97D201D67; Thu, 8 Dec 2022 14:48:35 +0000 (UTC) Received: from pdx1-sub0-mail-a302.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 128E42021C3; Thu, 8 Dec 2022 14:48:35 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1670510915; a=rsa-sha256; cv=none; b=kKBsoao1MDgPHLoaiID+7n3DJB4Gn3+yzmBs585zOfzXX9thL8F07jVtwCpn+HXE2D/M8B xxagVZUKhgWSBbXOhyQKW8cVfUYSioZR3hbB/2sQx5PkNIh9q1RjfjvMfUikfhW7+2jZui GbynhUTsf7w08gZXm5EcAnccyf56AbrBmsLoebHjCaKAxCcR/bZ+x8x9gLSlQZwFYnebPv gZJfZ1r5XiTrInp0MmGx35Fm2b3TC4ajKcNLMB4IiNQYFAkNbxPPINWATtIz/6XWk/Xjkq 0eO+acnzHK6UghUVxl3PsJHHIgOdp1q8Y/2TuqYGjzztC4ZM/I8wGASrdkugAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1670510915; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=AJxSlfXzofk8/J38pk6aeucLiCH3YNDFrXXCMRmJ7PE=; b=CSM2D23s4heeqKDHXnS7xaT3RgfmP8XTlDkjPoncvo1OcBlayIOFYXInxk2Zja2xOjettq fixCsv2zMXpsL0NEiyRfTWuLC0iuon8AMrTp9jdKQ17mkoWZmX6t+fmbYtZfqp6LRiaPSB 6KAqLUvIO8Ui0gBehSBeSCTTQ4I7vNVTAiK7gGLAeT2BS7JWlwmDI0+2wlRtsnkf26945j t9rRs+PGLGbgPC+0rPttFA99zEAnmBjaCb3FqtBkrHOe5mCRjBi482Bd3ESgNknp8HPxfB 3x9Y44PW/3PrLBFHPSgFQrreANa40Amw0WMMirr3sPHPNi3hYxG2v5HwAltwhg== ARC-Authentication-Results: i=1; rspamd-85f95c7974-rfmhk; 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-Abaft-Spill: 443a7ec5612482e3_1670510915333_2535159601 X-MC-Loop-Signature: 1670510915333:3463698446 X-MC-Ingress-Time: 1670510915333 Received: from pdx1-sub0-mail-a302.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.109.196.197 (trex/6.7.1); Thu, 08 Dec 2022 14:48:35 +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-a302.dreamhost.com (Postfix) with ESMTPSA id 4NScTt2T4dz2Q; Thu, 8 Dec 2022 06:48:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1670510914; bh=AJxSlfXzofk8/J38pk6aeucLiCH3YNDFrXXCMRmJ7PE=; h=From:To:Cc:Subject:Date:Content-Type; b=sDguCjaYatSmVFd7smJDnUiAlGb3fKOYdxwbCWySS5Re5+oEc7z81crR4NpFlahhw wzMxe6z+LRLMaRDGQUL/N1qF6wF2+QM3iSlPnPTwAm/gn3sxFlfWmI8mtnaCchSVYS dunl0X+tjVMWqMTfs8Cm9WvDpifBFTLnISft7eWJr7etbhhMHnAeA6/3FXAWftlos0 XzEb6+Fegnep5MlBEm/C2rHQglVwLuanS1pa0CO3NLCDGFwYKv1xRKqBwbrA0Vpv/i FYIPIaJtyyHW2kpuP8TPWePwQ5PhJSFmq5OOSmXNBDUf6aqjzU9GNRGOUhr/7YoaBe ebyiiU/U9AMVA== References: <874ju7fe2a.fsf@polidoro.io> <87zgbzdy4g.fsf@polidoro.io> <87edtbdpmo.fsf@polidoro.io> <86ilimgop6.fsf@gmail.com> User-agent: mu4e 1.8.11; emacs 28.2 From: Peter Polidoro To: zimoun Cc: "(" , help-guix@gnu.org Subject: Re: Using Makefile to run guix shell? Date: Thu, 08 Dec 2022 09:21:42 -0500 In-reply-to: <86ilimgop6.fsf@gmail.com> Message-ID: <87a63ydk95.fsf@polidoro.io> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=23.83.209.48; envelope-from=peter@polidoro.io; helo=dog.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=1670510946; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AJxSlfXzofk8/J38pk6aeucLiCH3YNDFrXXCMRmJ7PE=; b=M6+tykUK4JrSv81BBTubXRoEx4RqBUTu2pxqGBLsBWHbsDrge13+0cO7hHLRTt/yUpSJGT jbRpovmpozN2Qiyd9oVRuJyJkUZKgLT7yqn5zoktp/ibi3rpP2OMhSPIbIuc2dwUFDi8KP psYAdFZgJd4L3czetIz2+uIuN/ctQgzddqmwGqkmvfDVxTSPkrmFiVNKswJ5cGZSQ2Pi/s i3RuZ1V8TTO3PwiuQg3G2EaAfDxvo0VGtFqA1MY5ARv37Ojh1imJiZfmoizBk8+rgsjgcb V3gtROE044dIb3hQK/zMUfT5CUhuH0deCWVuHM8ZxIm4t3zIDuopheSiH5BEgg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1670510946; a=rsa-sha256; cv=pass; b=S9G0llA2hGxgPJxft8WOzu7/awTcaZS153gkpSpsz8jGg1yy4NZeM9RFs32/pqpxF1456d G2ekbhcVtdq482utnhSLctxEblhBqsPhPa095sF1wLQenr4y1VexHNcUXzJXLk3uKl0VG4 y87DnVOnznEZmcIsQJHgwHRUV1c4mURCCdFpuNhDRQQNVg76KIWcqekxPJr1uq1JrH1OpQ hZeq07lgVqY/9+sVF1QAGFZ1m4R8XlgblZv/JbErorHHNONuuvN5aB/TSU6MO5UjVkfZxA RyC1IoHpYQ2rkI5U43yDL3rE69GYfebKOBcSB7gRfOqvVwDIgfqfRkwVlrlhmw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=polidoro.io header.s=dreamhost header.b=sDguCjaY; arc=pass ("mailchannels.net:s=arc-2022:i=1"); 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: -5.46 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=polidoro.io header.s=dreamhost header.b=sDguCjaY; arc=pass ("mailchannels.net:s=arc-2022:i=1"); 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: C8349BB60 X-Spam-Score: -5.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: rOtTqpjkczmk zimoun writes: > where I try to decouple what requires Guix and what not. Well, > I have > not tried, but the idea is then to run: > > $ guix-serial-shell.sh make serial-shell > > where the Makefile contains the rule: > > serial-shell: > picocom -b 9600 -f n -y n -d 8 -p 1 -c $(PORT) I really like your approach and your directory layout, thank you. So you are not concerned about Makefile conflicts or using Make in ways that may not have been intended? Maybe I should just learn to stop worrying and love the Makefile. It does seem to add lots of complication in order to decouple Guix from the Makefile, though, with all the extra shell scripts and commands. In general I like the idea of software units being decoupled, but realistically I never want to go back to life before Guix. Spending too much effort making it work without Guix just encourages other people to use bad practices I am starting to think. I do not know enough about writing Makefiles, but is there a way to chain together the rules and targets so you could either use Guix or not, like a "make serial-shell" and a "make guix-serial-shell" with the latter prepending "guix time-machine..." to the serial-shell command?