From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 4Pe9D5psq2PlUAAAbAwnHQ (envelope-from ) for ; Tue, 27 Dec 2022 23:07:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MKnHDppsq2PtZgEAG6o9tA (envelope-from ) for ; Tue, 27 Dec 2022 23:07:22 +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 BD3A2D42 for ; Tue, 27 Dec 2022 23:07:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAI61-0007Ty-Np; Tue, 27 Dec 2022 17:06:53 -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 1pAI5z-0007Tl-R4 for guix-devel@gnu.org; Tue, 27 Dec 2022 17:06:51 -0500 Received: from mailout.easymail.ca ([64.68.200.34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAI5x-0002Mr-O2 for guix-devel@gnu.org; Tue, 27 Dec 2022 17:06:51 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 9F81867647; Tue, 27 Dec 2022 22:06:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail; t=1672178806; bh=ZnMF3pweUM7KzCFX7xwQkxQGW1Oy7hn2WnN85RYGehg=; h=From:Date:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=YkGeIWeQl/HcnLzckGJznESo4ogEvFEO1vzAn6UT0fRJjXKcn9Q4MMVes7kSys1iM TUBeRlFcawv4NXrcpe4Db6Uq4ilH6VctwnMoXHerdF+mclosMqJKYO22CIBAH1qNAO uTiBswrSW6VnOHQ3pThDSfBclVOTCXLIZWh8Il+N9Ed54keDGVl/lOXJBGDuOHYssr Funu69ki2vM/11nPu5eQTujPevM8iCCbCFhuI47fu+ifSmcq2YlNEItk3ODUQMJZ+U fRkCkOQAe9XtlyRfFeMY6Sc3D49L3ZEr4IKraLvLwPzTDmyfkLrKDD3O+9WBUfWQqj Dc2gOGUJ059LQ== X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VLQNkxMiSQyF; Tue, 27 Dec 2022 22:06:46 +0000 (UTC) Received: from localhost (m83-185-37-195.cust.tele2.se [83.185.37.195]) (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) by mailout.easymail.ca (Postfix) with ESMTPSA id 19FD166EC3; Tue, 27 Dec 2022 22:06:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=bokr.com; s=easymail; t=1672178806; bh=ZnMF3pweUM7KzCFX7xwQkxQGW1Oy7hn2WnN85RYGehg=; h=From:Date:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=YkGeIWeQl/HcnLzckGJznESo4ogEvFEO1vzAn6UT0fRJjXKcn9Q4MMVes7kSys1iM TUBeRlFcawv4NXrcpe4Db6Uq4ilH6VctwnMoXHerdF+mclosMqJKYO22CIBAH1qNAO uTiBswrSW6VnOHQ3pThDSfBclVOTCXLIZWh8Il+N9Ed54keDGVl/lOXJBGDuOHYssr Funu69ki2vM/11nPu5eQTujPevM8iCCbCFhuI47fu+ifSmcq2YlNEItk3ODUQMJZ+U fRkCkOQAe9XtlyRfFeMY6Sc3D49L3ZEr4IKraLvLwPzTDmyfkLrKDD3O+9WBUfWQqj Dc2gOGUJ059LQ== From: bokr@bokr.com Date: Tue, 27 Dec 2022 23:06:31 +0100 To: jgart Cc: John Kehayias , guix-devel@gnu.org Subject: Re: Should Guix support writing CLI Common Lisp scripts? (Think Roswell) Message-ID: <20221227220631.GA49814@LionPure> References: <87r0wkk8kx.fsf@protonmail.com> <24871675f2ccdf7f3c46c46832b3f3f9@dismail.de> <5706580cffe4acd70e7a790ff7df810b@dismail.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5706580cffe4acd70e7a790ff7df810b@dismail.de> User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: pass client-ip=64.68.200.34; envelope-from=bokr@bokr.com; helo=mailout.easymail.ca X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: bokr@bokr.com Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-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=1672178842; 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: 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=4PTk3Xs9AclDpKYzPl22OYenYbUdiR1FZheeFudoQvc=; b=Q9wKUqEht2CrMMgUrdRSXYevy6IJLIxgNOonBN9RoLRX7Yh1ItmArE8qdbopvrlcZYxOMj OE2mPJZEGX+7kd0gsheQ2OnyeOOXTo4p8UiPwtVJO2BlWKloAEoRE1muvJ8G6GTN31f0Gm 1pj8UGcyDEP4afjX1ps0wuEHGF09PwJ5OpqsnAaQBJcwK598i0ixwrzyATXn+OeiCP5mDd tz87WvVdE+EYZ3aWruA3MgCur7n/E3l/8u+2o8gkwvqj8B05eTwcjtWq+dOHthDpl7ryuQ bADMioemLNKSKx+CnTRap9iJDK45ETffC+1pxvuL1HlDAquViDU72OJaY49nSA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=YkGeIWeQ; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=YkGeIWeQ; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672178842; a=rsa-sha256; cv=none; b=DlhhmeFrLiKcKvzGwlboxql+qKA8fKPE4/in8gAJ0kbeyzYA3j/RAHW435JVdqjeVRIlkv 13Eycy8tWVkBoMMW0IvtqRo1qGoR5XVosusbiomSKJhp+rbM+UMvnbKlMWLpyrSd8qTnN8 vbp6t3DhZIexxd4nmqSadRGWPi02TA3is1KZGyzrKqm/zNqEK1SVh/MUPrkoK8nikyq7OS XuOO0ZR6+erSixDc0tFRo/7u/dCVsNu2ntIm3ZgA5WIsnILLtvHVDHHgI2M94LntgdOanE 7bYRrmpY1NzujIPlpfR3WamJVWFUEK3L9j0Cj8kFreyyWqMl2DpTvnOFhbQcjg== X-Spam-Score: 2.97 X-Migadu-Queue-Id: BD3A2D42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=YkGeIWeQ; dkim=fail ("headers rsa verify failed") header.d=bokr.com header.s=easymail header.b=YkGeIWeQ; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 2.97 X-TUID: sa03k5vwEzRZ Hi Jgart, On +2022-12-27 19:23:18 +0000, jgart wrote: > > I'm not sure what you mean if it is something beyond what we can do already with 'guix shell.' Do > > you mean using a particular hashbang as well? > > Yes, that is one feature that I was nodding ambiguously at. Sorry > > > guix shell sbcl sbcl-cl-csv unoconv -- sbcl --load myscript.lisp ~/Downloads/*.xlsx > > That command is too long. What Roswell does is create binaries and installs them in your PATH for your usage like a traditional script that you can call without also having to call the interpreter in your terminal invocation. > > I want to type just the following and have `myscript` be an executable program available in my `guix home` environment: > > > myscript ~/Downloads/*.xlsx If bash is interpreting your script, could you use alias myscript=YOUR_MAGIC_HERE to get the concise invocations you want? (which bash BTW? -- from logind, child of that, or via a guix profile, or minimal-something ??) ┌──────────────────────────────────────────────────────────────────────────────┐ │ help alias │ ├──────────────────────────────────────────────────────────────────────────────┤ │ alias: alias [-p] [name[=value] ... ] │ │ Define or display aliases. │ │ │ │ Without arguments, `alias' prints the list of aliases in the reusable │ │ form `alias NAME=VALUE' on standard output. │ │ │ │ Otherwise, an alias is defined for each NAME whose VALUE is given. │ │ A trailing space in VALUE causes the next word to be checked for │ │ alias substitution when the alias is expanded. │ │ │ │ Options: │ │ -p print all defined aliases in a reusable format │ │ │ │ Exit Status: │ │ alias returns true unless a NAME is supplied for which no alias has been │ │ defined. │ └──────────────────────────────────────────────────────────────────────────────┘ > > I want an automated way to prepare the script for that command line user experience. That is the convenience that roswell provides. I agree that is is sweet sugar but I'm lazy and don't want to type long CLI invocations. > I think it's possible, the question for me is what language do you want to code your automation in :) > Thanks for sharing the above though. > > It's great to see how people are using `guix shell`. > > Given what I said, I might just do what you're suggesting John, because I'm not sure when I'll be able to implement a solution like the roswell one in Guix. > > Thanks for your thoughts on the topic. They are appreciated. > > all best, > > jgart > -- Regards, Bengt Richter