From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 eKN/BY4xkmM2lQAAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 19:48:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YB2WBY4xkmP7BAAAauVa8A (envelope-from ) for ; Thu, 08 Dec 2022 19:48:46 +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 C0275A2A0 for ; Thu, 8 Dec 2022 19:48:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3LwW-0007gm-01; Thu, 08 Dec 2022 13:48:24 -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 1p3LwM-0007aj-Rv for help-guix@gnu.org; Thu, 08 Dec 2022 13:48:23 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3LwJ-0007yk-Ta for help-guix@gnu.org; Thu, 08 Dec 2022 13:48:13 -0500 Received: by mail-wm1-x32d.google.com with SMTP id n9-20020a05600c3b8900b003d0944dba41so1718620wms.4 for ; Thu, 08 Dec 2022 10:48:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=hLt3xG3RQNCNtDtg92MMsQ3ERhe9JUPYXiKsIzDC8kk=; b=Am0jdThMEAJ1yjfz3CZT2Vicn0x0yMLgQlxgCQKx37KjY7syIsECsK4v1ISCxEmd6G 2M4DkVhAIRc+jk2wYpJK0FjS+1xUYxcfG92OzgRBzzHsi9ka2wi2bKMM76083flHR+Nt Rao+Ht14nh1eLGie2KpnoxiKSBiOI0p3r4BbGpgK79e7MmbZ2FDqxwDOnwQ8toFsgfwE o2zFWG2yhwY3+KaBSEQxyV5JybgFnihc0/neXm1zduMjWbeOTGSYebGLYgDW52qZI1zR sFeQAehSPf0KcdhTl9uSdWx3/np25MX0uu6xyucBFdKFAb/bMoi7k/xjknjq/Eshampu a6tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hLt3xG3RQNCNtDtg92MMsQ3ERhe9JUPYXiKsIzDC8kk=; b=Tmm8OrOyJhxpbxIjLn0IW5QyXjlDXbQ49A5IxgLluhfU3yQln5dGBb/1tpb7JL8Bxo EugNGkFoJx0Ieyciv9aPEd31915q0qearpwm0mwePLe7+BfDzOz1swkKqhX9oRPnLgcY 1vCOOmSc9VD0J46Qp/o2WLSgju056h/BkJM9kPOyeaMmDzZXl8cuxFVCpkRDgiUlTSvG JA+AhLrhuF9f/KByLJg48ZOp2HOOXEI1Oie+hQYPJW9LMMxAvPl2mIZmSTGRx8TrgRIN CTUQJHu0llsKIR5QGjreoL22T7wL0UniRxV78i3VVR7NtzV0lSYTldEV1s2Eet/i/ITn nCRA== X-Gm-Message-State: ANoB5pk1cmw8SZI8kG529qx4d6+VgdO/6b6lOkq7ryaxnfbSP9Imlj9a QJJBex3/eRSTMYCJJCBzwY1ZjRnL7yA= X-Google-Smtp-Source: AA0mqf7dmwUM0MNpz19sC9f80MtPkeFKvmvNZPoJJ83CBUei/ILX5T3V7Hu91qlSf4AtsaZAEFByCQ== X-Received: by 2002:a7b:ce97:0:b0:3d1:fb9f:5c7c with SMTP id q23-20020a7bce97000000b003d1fb9f5c7cmr550559wmj.3.1670525290247; Thu, 08 Dec 2022 10:48:10 -0800 (PST) Received: from lili (roam-nat-fw-prg-194-254-61-47.net.univ-paris-diderot.fr. [194.254.61.47]) by smtp.gmail.com with ESMTPSA id bg9-20020a05600c3c8900b003c6f3f6675bsm6983190wmb.26.2022.12.08.10.48.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 10:48:09 -0800 (PST) From: zimoun To: Peter Polidoro Cc: "(" , help-guix@gnu.org Subject: Re: Using Makefile to run guix shell? In-Reply-To: <87a63ydk95.fsf@polidoro.io> References: <874ju7fe2a.fsf@polidoro.io> <87zgbzdy4g.fsf@polidoro.io> <87edtbdpmo.fsf@polidoro.io> <86ilimgop6.fsf@gmail.com> <87a63ydk95.fsf@polidoro.io> Date: Thu, 08 Dec 2022 19:47:14 +0100 Message-ID: <86r0x9g2bx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32d.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670525325; 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=hLt3xG3RQNCNtDtg92MMsQ3ERhe9JUPYXiKsIzDC8kk=; b=m6UkoSpfKHswTnrLiUVgq3V1diPs/pzpAXIeylDIM49cQJKLuA7AnMPHxkE7K7/IxGIJaq nRuetPlYCgtY5+Tju8WxfjeefT8Pk55LNpV3SVrvWW5HQFXwvJudnkhT9NU69g5DuRQfOY AYdq9ZuQ/ZuU6vgdB3rA/vA69qswhYTL+Fw5JhK56EoJJkAvFMpx3OvYSj2sf8FsZM3dtN BMJdS4uF0lylWvI6/lWG3d7z2I73yeMgcZIrMkrFU+a7YI8IY/gYT1NDGc5Rot44qi6s5V fPmHOGz3Iae2lrKz7k2YYd8FSJ12ej8uyw2V33VvtblrCQ1964pK1Br0YR3bAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670525325; a=rsa-sha256; cv=none; b=mgxIAGpvUgd4JvtBNhrn78eltooiXiQgLhqwTp1mPS9XQzhWgxK2h/umuDn4rxUhyphnqc aON27m/EhPQmTVCncSyvIff+dMoNtxtnXXs2jLbxILd0qunhDfOnbhZtZ8AeVEPgOJovSE mn/zrCj8jMFpBLvA4mt72/op23xAXGeUgHaXm8n6dZZD6RQU43k5EXN+WXIyNMoexIcwz+ uqCUur8r5Kht+7RHMT+Xlmncci/Tq4bC8MlYI9/HjPdzt7/BUVy24tW/2MqehUDr4dlHyq gKJ0Ae8NhSrQvfxo8UfUUIvAxloKutsiEW2NrOq5ySBGyPhS25UTQLKqT5f4NQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Am0jdThM; dmarc=pass (policy=none) header.from=gmail.com; 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.96 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Am0jdThM; dmarc=pass (policy=none) header.from=gmail.com; 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: C0275A2A0 X-Spam-Score: -2.96 X-Migadu-Scanner: scn1.migadu.com X-TUID: hFtDWbW8Qn5T Hi, On Thu, 08 Dec 2022 at 09:21, Peter Polidoro wrote: > realistically I never want to go back to life=20 > before Guix. Spending too much effort making it work without Guix=20 > just encourages other people to use bad practices I am starting to=20 > think. Well, it depends on your collaborators, if you have. :-) For instance, maybe your collaborators are using other tools than Guix and they do not want to give a try for whatever reason. Sometime, this folder guix/ is not in the Git repository since some colleagues do not want to be =E2=80=9Cpolluted=E2=80=9D by some extra files unrelated to the = direct project. > I do not know enough about writing Makefiles, but is there a way=20 > to chain together the rules and targets so you could either use=20 > Guix or not, like a "make serial-shell" and a "make=20 > guix-serial-shell" with the latter prepending "guix=20 > time-machine..." to the serial-shell command? You mean compose the rule, right? Well, without being a Makefile guru, I think you can have some recursion. --8<---------------cut here---------------start------------->8--- $ cat Makefile ifndef GUIX_ENVIRONMENT todo:=3Decho else todo:=3Dhello endif stuff: @echo "Enter stuff" @echo "GUIX_ENVIRONMENT: ${GUIX_ENVIRONMENT}" $(todo) @echo "stuff done." hello: guix shell -C hello make -- $(MAKE) stuff .PHONY: stuff hello $ make stuff Enter stuff GUIX_ENVIRONMENT:=20 echo stuff done. $ make hello guix shell -C hello make -- make stuff Enter stuff GUIX_ENVIRONMENT: /gnu/store/qh9mcsp50kc21h505qvzj9asrkdk0bl1-profile hello Hello, world! stuff done. --8<---------------cut here---------------end--------------->8--- Note that the Makefile calls the Makefile but since it is run inside a shell --container, then you need to provide =E2=80=99make=E2=80=99. Cheers, simon