From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 II1nNl3/kGNk6AAAbAwnHQ (envelope-from ) for ; Wed, 07 Dec 2022 22:02:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qEuKNl3/kGNNZAAAauVa8A (envelope-from ) for ; Wed, 07 Dec 2022 22:02:21 +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 4DD30C772 for ; Wed, 7 Dec 2022 22:02:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p31Xw-000584-Pp; Wed, 07 Dec 2022 16:01:40 -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 1p31Xt-00057h-RG for help-guix@gnu.org; Wed, 07 Dec 2022 16:01:38 -0500 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p31Xr-0002B1-Tk for help-guix@gnu.org; Wed, 07 Dec 2022 16:01:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=8iun8H1Iky7EuKx4lp+1SF9ossNGR/LksZC7clRf5Fs=; b=nat9++qBXDVEStPCLR4GEn/JQ4 ROZupqB9v8pbjshZ0f0f8TN072x8HCPAbmdCFS/Zo4zkdFN7Z+d8Hb8eAMZl+4pS4F0i5EXFST2VI YbPWjThPPxFkInF6y+Ty5BRHdjunDaD6EK4ugBCEQhZaLET3ut443eeYvcGJD3p1kOJf61tH3wocF 7eiriGRhyNWYlnuEJv0wjUeqjGxWV5x5t7E46ymyVcJ1cT5hIlALixcBCQd38kk8v7HZ4T7LtDcN7 UIr16S/pSGvLpMXYKpTZD1gZDGAeBOKMhvCUl6J8flM4yY3o428IbTpOQJIaz74ldP3i+wuIeAKp5 EWoHGXKs/1QT63AMuVK57DpNmp8uMsNENR/+HbbuM5i8nPfqIZTBzJkbaaGMq1lT3j3UYEYJ0sfXn GRZjYKem/BLJfcceDEeaqonSIOQedAR9NvvQkAOVCPCKP0nQPf4U9cT+TqF7UnUyMONmXETL92CSk IwWhe2ssI19tuOloymEwymoRGZ4yDtyCkmXE6q0LGLEhImmZ55WokF90Smx5vDHxn1kS7Me6Gv/48 GlR+lNj/y2c8HwAKgp9mrhv5pBEom1UuCVH+Vn42lnx5mfXKzY+WOXv507FvyVnbpgBmG7+birOr/ rA6DVfmlp4zFfs0m0E6clQdsDV8E+BlnLB/73KTr8=; Received: from [77.252.47.239] (helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p31Xf-0002fP-Ay; Wed, 07 Dec 2022 22:01:23 +0100 Date: Wed, 7 Dec 2022 22:01:21 +0100 To: Peter Polidoro Cc: "(" , help-guix@gnu.org Subject: Re: Using Makefile to run guix shell? Message-ID: <20221207220121.6699388d.koszko@koszko.org> In-Reply-To: <87edtbdpmo.fsf@polidoro.io> References: <874ju7fe2a.fsf@polidoro.io> <87zgbzdy4g.fsf@polidoro.io> <87edtbdpmo.fsf@polidoro.io> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/.9Ww/tZYQdBrnVCnXmXM7v1"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org 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, 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: , Reply-to: Wojtek Kosior From: Wojtek Kosior via 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=1670446941; h=from:from:sender:sender:reply-to: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=8iun8H1Iky7EuKx4lp+1SF9ossNGR/LksZC7clRf5Fs=; b=DX5SKNORAefcpjTY/9KOJim3UmFon1EY3AkUJcaKpE2T4mLNe3mcDhA418U86AE8Lk3lpa HBNJQqb5gTOC4CkFKiNVfyqOKlKzWLdOpxiMQxRBD8h2v/Xo7mQCySAoErqGUlZACauNkM 6RLbQhHfr2XEIiO4nCtChtC+KBjh35frMzNtcgEFbh3nNs0RbLaUU56uRYWsjBVRBec6bM 5ik9d7zqne1azhe+xkOrnSFZa2tUkwkhNWZp6ON9XVb8zYbYsn4TQwH2tBRtFi57QQvldS OhGd5XSesa+nIKmRdkgZki9smBj7TVPN8XUX2antoSG9r2O+Vh1ztj8FEGjR9Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670446941; a=rsa-sha256; cv=none; b=MbNsyr2eVyWi6Cw20Qzsw9U9rgPlQSUsM4/YLeAZtNblo9a0gjHn1zTke8sdxhvPknVgAk coNGOF11Rre0sV1V0MFHpMui7k0y47NhjbxCcdXbJfMnDaPgZ93ei1g95J38Ufbq4FVLr9 W81sErY10KJ84WZ5HQbc8wkrXNFuwSmxc/htn5G5N0A9mnhjldoyWHnrE8699/Dzzke07f EYYI4NeWVCNOH0UJeyLkC4Wdgl6akaApGoqH0DTwhZmvL1EoF95i25i/Rh94hmbNLgyXlL jrrU/DhXA/hnR8byaCmSf0wLaGHL21UoptuC5CVpGXcgtVwWjPcUXYSCeLkNPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=nat9++qB; dmarc=pass (policy=none) header.from=gnu.org; 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.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=nat9++qB; dmarc=pass (policy=none) header.from=gnu.org; 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: 4DD30C772 X-Spam-Score: -5.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: fcJLT7HZ1b8g --Sig_/.9Ww/tZYQdBrnVCnXmXM7v1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > > Why not just do: > > > > guix shell -- make metadata > > I do like the idea of not making it depend on guix. > > One of the things I am trying to avoid, though, is typing long > guix commands. > > When I type "make guix-shell", what I really want is something > like: > > guix-shell: > guix time-machine -C channels.scm -- shell --pure --check -m=20 > manifest.scm >=20 > Or if I am doing embedded work I might want type "make=20 > serial-shell" to do something like: >=20 > serial-shell: > guix time-machine -C channels.scm -- shell -m manifest.scm=20 > --container --expose=3D$(PORT) picocom -- picocom -b 9600 -f n -y=20 > n -d 8 -p 1 -c $(PORT) >=20 > I guess I am just curious how other people manage such long=20 > commands? > I recently came up with the same solution as you[1][2] :) I haven't considered hard requirement on Guix a major issue. But I did for a moment think about another solution to the same problem. I believe it'd be possible to use a mere shell script instead of a Makefile. Or a mere guile script or Python script (setup.py on steroids?) :) Wojtek [1] https://git.koszko.org/pydrilla/ [2] https://git.koszko.org/koszko-org-server/ -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A Meet Krak=C3=B3w saints! #21: saint Kazimierz Poznaj =C5=9Bwi=C4=99tych krakowskich! #21: =C5=9Bwi=C4=99ty Kazimierz https://pl.wikipedia.org/wiki/=C5=9Awi=C4=99ty_Kazimierz -- (sig_end) --Sig_/.9Ww/tZYQdBrnVCnXmXM7v1 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY5D/IQAKCRBLxSIcWnn9 GlAyAP40aj36Df7gYAXm/7/hsoi5SBYwHnzsbeL04vesBwp28AEAo05BnAHXP9wm RXOqabhs4gI3OMWIexGTBqSEJ6HHQQw= =Mb84 -----END PGP SIGNATURE----- --Sig_/.9Ww/tZYQdBrnVCnXmXM7v1--