From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wK2TCKSMlGPZKQAAbAwnHQ (envelope-from ) for ; Sat, 10 Dec 2022 14:41:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UO60B6SMlGPSAQAAG6o9tA (envelope-from ) for ; Sat, 10 Dec 2022 14:41:56 +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 AA9EB2499C for ; Sat, 10 Dec 2022 14:41:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p406n-0007LJ-Nf; Sat, 10 Dec 2022 08:41:43 -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 1p406W-0007Fz-CW for help-guix@gnu.org; Sat, 10 Dec 2022 08:41:25 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p406U-0008LJ-Lg for help-guix@gnu.org; Sat, 10 Dec 2022 08:41:24 -0500 Received: by mail-wr1-x436.google.com with SMTP id o5so7840352wrm.1 for ; Sat, 10 Dec 2022 05:41:22 -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=I3Aomw4m+SWWW3rG/DgkT1yWqxB90cGg7E7dV82siag=; b=aEDkDaVoxYGuDFIpUzJtE0oPgJVyM8Sk9Ofeys4l6xP435En+YCrD6Kacug8KGtatE R6ZdFnE4AlcJAdzUmDrvJ0gREbj0tW2ovhtxQTUafyJr4udb96v3OYQR/hgypaITbAgc pa5BDwtdeW9rn38uJawp6oTtZ4b9MRvKJPKyOSs1W5x/p3jST1Y6i8olpQYaNt6bWKhf aiIlQJvkTuvTMeNu6TC1a/H+/GCBgeuFRpjxIgZUuIkhhtDrmLn/7rUwaOyCeaKw67Gw KFR2eVwHdqGecczKRxxxFlTEazvgzs61IbD62f5drAdUewwwoVRajXl8Xfqe2fTP/mDz XTjg== 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=I3Aomw4m+SWWW3rG/DgkT1yWqxB90cGg7E7dV82siag=; b=aaqBbMON41JXt2/sOl2Vv3QhmSx/VRn5plBMgWzGSCkfjjQZ4WW/4hM300oPYTZCI9 47Wib+iQJTvhOWmeiK8S0Xw0fQFduXhX+5hLJUmU8+IB6Daopgc8yHIyMFLrYDXujKpY H3e1BxfZIYM1ZyZLXLz0avoQ/u/W68TnubwRAol7Ua76QYCcPQVuZDhqGODhCsrXgxTt O+grg7hQIxBXWwvaiTrqkMAaZtcDYVryZxQhBlGrcJuLGp+xUn2StOh+CCMYJvcJqtnC Im7ElxYOVoXdMZq9nj11tNavh/LTXMmWrRYf266fmyZQPZkJsPNaZzh0hMunIXiqgJ9N MoyQ== X-Gm-Message-State: ANoB5pmfS2m1O9rjnYEcvFhlKExGQ47qUJpfRyVO9KY3gKs+SOiVBaOV llUn9ffibF7V3rYTGOUkXT4V5+fpwn0= X-Google-Smtp-Source: AA0mqf7TaxngDSmK7mODa4dZSf/OhmGFtde6kaFwlhovBWe0qdxQx4YqSX8uTWbI5zZz2JQ4MjzMhQ== X-Received: by 2002:a05:600c:538c:b0:3c6:e63e:ba74 with SMTP id hg12-20020a05600c538c00b003c6e63eba74mr2007904wmb.2.1670679194686; Sat, 10 Dec 2022 05:33:14 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id t16-20020a5d42d0000000b0023659925b2asm3922049wrr.51.2022.12.10.05.33.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Dec 2022 05:33:13 -0800 (PST) From: zimoun To: Peter Polidoro Cc: Wojtek Kosior , "(" , help-guix@gnu.org Subject: Re: Using Makefile to run guix shell? In-Reply-To: <875yeke9qo.fsf@polidoro.io> 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> <875yeke9qo.fsf@polidoro.io> Date: Sat, 10 Dec 2022 14:21:34 +0100 Message-ID: <86fsdnl7hd.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::436; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x436.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670679715; 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=I3Aomw4m+SWWW3rG/DgkT1yWqxB90cGg7E7dV82siag=; b=sClDb5GQnBwuYMjIpTH8MbLDeka+4PVxFWUSal2cFpBckCYVZgl7Rq6j0fR44YgJpT5dKO /k/e6ngS8fm7mSbFTrPS9BWfDot3Zd5yt8V/adA7hQ/9GbpKONaU/0miCTfiUwVPfxPJBg VFbkYjGhW1IeXzgfHkALLcU2LxCy7bxnB5eUqz7r79Gn4tOYUIV+/RpT6e61wrjYIBRb4B FDF2ukgfe0S/JNzI14hnH9isweDaw6Vt0h823xughXwzG/hDnB3PvZZRXyMIEUZjGCqnDk wJoz+16NPJCjRKhVlfZdnKocUhdfkxwgEJD6gvqB79UAnHnZl5/ngY1sGITPUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=aEDkDaVo; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670679715; a=rsa-sha256; cv=none; b=B5X/E7ASahrCodsetkrb/1zijqN9BkXufwF91G9BQ4LA2F0+6TZEPIDY+8l+5OFXn1x1IQ /12fQ+weVFDck/Yh7WQOHByH+MUhnBTHLtUXaGpEAAcEneCpYxaZ19z1kbYuU7lMWyJsHH SFigkVlWN9in2OgHIgkxm0a6MyKGTRpoeF04vO/12GD4qrU9AJKm9rCDpOcQRK9RKwL573 z9g2R4RoyTx6OEFs+1cNb+mPu8XpyINSaH52tg9AObitIV9jhWq836NgWvfSLO7kM5uh8N Gb2PZTwzkoUculWd1lc8NGe5H7ttlYv0lnZJKirZa86BHlOIWMnlSd4b741UQA== X-Migadu-Spam-Score: -5.48 X-Spam-Score: -5.48 X-Migadu-Queue-Id: AA9EB2499C X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=aEDkDaVo; 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"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: 0aJpDnO1fKow Hi, On Fri, 09 Dec 2022 at 12:46, Peter Polidoro wrote: > I am not sure if you are the same Simon Yes, I am. :-) Have we met? > but it made me wonder if=20 > using guix extension could a nice way to solve these sorts of=20 > problems. Well, I do not know, I mean it is not clear for me what I would like as an interface. > 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 >From my understanding, there is 2 levels: + how do you call the Guix specific? + how do you implement this Guix specific? Because calling =E2=80=9Cguix serial-shell PORT=3D/dev/ttyUSB0=E2=80=9D or =E2=80=9Cguix-serial-shell PORT=3D/dev/ttyUSB0=E2=80=9D is almost identical= . :-) So the true question is how to implement? If using Shell script containing something like, guix time-machine -C .channels.scm -- shell --container=20 --expose=3D$(PORT) -- make PORT=3D$(PORT) serial-shell Well, the extension is just for fun; it would contain something like: (invoke "guix" "time-machine" =E2=80=A6) So the extension is replacing the dash by one space. :-) Now, if instead of the command-line (guix time-machine =E2=80=A6), you would like to use the Scheme API, yeah you can do it using an extension. >From my point of view, in this case, maybe an extension is a heavy solution when a quick script would just smooth the workflow. Somehow, for the difference, give a look at patch#58339 [1], + [PATH 1/2] uses =E2=80=9C(apply system* =E2=80=A6)=E2=80=9D instead of = =E2=80=9Cinvoke=E2=80=9D but that=E2=80=99s the same idea, + [PATH 2/2] uses the Scheme API, sure trivially. :-) 1: HTH. Cheers, simon