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 OJjZLUrTrGOGuAAAbAwnHQ (envelope-from ) for ; Thu, 29 Dec 2022 00:37: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 +LnjLUrTrGMPYQAAauVa8A (envelope-from ) for ; Thu, 29 Dec 2022 00:37: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 5D8BA1262 for ; Thu, 29 Dec 2022 00:37:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pAfz8-0000bn-Hi; Wed, 28 Dec 2022 18:37:22 -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 1pAG5d-0001ZW-Uz for guix-devel@gnu.org; Tue, 27 Dec 2022 14:58:21 -0500 Received: from simopolis.xyz ([202.61.230.221] helo=mail.simopolis.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pAG5b-00063P-AY for guix-devel@gnu.org; Tue, 27 Dec 2022 14:58:20 -0500 From: Russell Sim DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=simopolis.xyz; s=dkim; t=1672171094; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EGwUBRQSoc3LNWVrgl8asAgEE6TFdGaEoP2jQSiwmoc=; b=DRsDOoeYEZQWdLC7VEPhI5p9h/OnFU1qRLqhWnvibInywV2nGAqxI85J4c1TZH/gRcf+3U yN98lJ9q6BuOKoiYYQTav7MeaDEfsCYn6AVWHUdns7rlP/i/prphYbdGwgH93dx31kqLdK oCeUjdIDzyrw3WB4q17E87u7KbRXl3+LT29nxxe6ogqWXMuivmG+eOvwhAjM82AGaaIQK4 hYyKzqN6QQORXV3JFi7CYYV63eV1XbnnnlQjYp7oJyWnAHZRwLa8lrDd6NL4h2E3hq3DFh 1cUUK2EdG8LKbQPNvvePCU6ZyvTaJ1zaxa7aynM78nEhJsZVvzRuVyx6qNZGiA== To: jgart , John Kehayias , guix-devel@gnu.org Subject: Re: Should Guix support writing CLI Common Lisp scripts? (Think Roswell) In-Reply-To: <5706580cffe4acd70e7a790ff7df810b@dismail.de> References: <87r0wkk8kx.fsf@protonmail.com> <24871675f2ccdf7f3c46c46832b3f3f9@dismail.de> <5706580cffe4acd70e7a790ff7df810b@dismail.de> Date: Tue, 27 Dec 2022 20:58:08 +0100 Message-ID: <87o7rowre7.fsf@simopolis.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spamd-Bar: / Received-SPF: pass client-ip=202.61.230.221; envelope-from=rsl@simopolis.xyz; helo=mail.simopolis.xyz X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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, FROM_SUSPICIOUS_NTLD=0.5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_PDS_OTHER_BAD_TLD=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 28 Dec 2022 18:37:17 -0500 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: , 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=1672270666; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=EGwUBRQSoc3LNWVrgl8asAgEE6TFdGaEoP2jQSiwmoc=; b=d45giLShOtrt30tLUin+qH+nbce8JA4H9vIyxH05I5Tln3K2Kq6flphjgzhuhQD9uvcZaa ubkX5OY2GfzUIbLUdhAVA1THig8hUKPtgD9dJ2TdcLXJYIPajYSEKio6SnEfV3VZT5Cd13 01aH533siI2/6bA59Fb9Epi51aysNK5zCBwKWlYGHBSJ1fZLw+HsJaAG8NT+VwU4MvNZaT 5AfL9IbSzpYZ3MWEZupNOSlE+HNm+h+6J8Du4Li3ZONQbE539NE0Xsk2iOmy0VvccHMDSs JvUBqCJnHp04sBLeXNovpijobLmmAtSFJqTQBdvJgvTH2PEQB7LM7JwHFufGJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=simopolis.xyz header.s=dkim header.b=DRsDOoeY; 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=pass (policy=quarantine) header.from=simopolis.xyz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672270666; a=rsa-sha256; cv=none; b=sgtr24TYATWq2dDTNuLeO23vVvSpeaIkT0F0haf8PTGHPestancub687CWNLbtLYQVvLGM antF8CIy0ln8PS7vI76QnLql78jdeZWoQ5rdS+PVo3Nx3FR5A3TakUcV/H1BYzl12LPGUv yAmjAdCuZ1FKZ9X0cSA4V1QdEj9vQZaPmcVqIg/GEfFg89wCz40RTNIPng5Lj04ioy9gsA sXUuGFan31zrjdeNrrzANV+pWaAFKESAlpaT2gSENVao73FuKs+at5EHFzXtmFaD4XbzIV zMGIIpmSOxeaDdFn0DGCjzPOZSOVxlpRwG0dD5RrWKs4K77uPKdnQrV/HAq0JQ== X-Spam-Score: -1.53 X-Migadu-Queue-Id: 5D8BA1262 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=simopolis.xyz header.s=dkim header.b=DRsDOoeY; 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=pass (policy=quarantine) header.from=simopolis.xyz X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.53 X-TUID: 3i62a1rYmEUB "jgart" writes: >> 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 What about something like this? --8<---------------cut here---------------start------------->8--- #!/bin/sh #|-*- mode:lisp -*-|# #| exec guix shell sbcl -- sbcl --script $0 "$@" |# (format t "test~%") --8<---------------cut here---------------end--------------->8--- This example is pretty similar to the ROS file header which would be like. --8<---------------cut here---------------start------------->8--- #!/bin/sh #|-*- mode:lisp -*-|# #| exec ros -Q -- $0 "$@" |# (format t "test~%") --8<---------------cut here---------------end--------------->8--- Cheers, Russell