From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yBG1Aje/q2X0NQEAqHPOHw:P1 (envelope-from ) for ; Sat, 20 Jan 2024 13:40:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id yBG1Aje/q2X0NQEAqHPOHw (envelope-from ) for ; Sat, 20 Jan 2024 13:40:23 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=FcgnYGD9; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705754422; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YjNR1qKNuHkc5NwLFbgdNmb2JLeFXgYO315pmRPoY6s=; b=TfbtQLYkl24/nPfH+n0trRU4iIu2SGL4JJzX8ey0JToSZ79flwi1swp7S27SIJU7aYGK5D vL2LzvUTAO8bGunuQya/ZiW9DcMpuEDi3cPENgqPnKZ/6LgOPO1jEDcu2Dx7ZkQ1S8o76e YLmlWySXIey7OfM/FAtHsIfgOtEIaCyUQFjOJdtsC2lsZQETwptthdCpRNOSm/PsOPStvA 1UVp9cHyv7XOCkafEjcdcRBAhpDMmTFpGVsCl3jT/SN+aZw3f9JHUDxxvugIHUvdXneis1 d22fvmJ+bV1brxdActPzYah0PdGAJ3QSqjEn1mJuWdeAqmBx6G2d78sUVBKZ+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705754422; a=rsa-sha256; cv=none; b=tw4qJWW9T/lR+M6l+3WGxKByRCtz1yHguT/2/+4BzvmvKTzZveBKAwZZso3pTqEQ+teO6Y hV9mT/CfXddadAjP7ym2fto1d5kP72auAdYWEie/R4It3EkpnLNWBbm1q1AKZ2qv3FJW5W FG/O0DgQefMQHvD5YoLD2218Q4jKVElW5RrFlqmbptlkENEvn1CM5dfZ3rVTf4BJb6Azpf htoc4FOVUO4zh3d+1nzXKxe7qAtUN8ydKu/7kz49WjXg02efR0rjRkbR2nN+4w67URwc2R YOoKI9sPna94/T3QB2a0xCkrEKoKUSWh8FUA8nkBimtxp2k6zZFBSDm+8bmQ1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=FcgnYGD9; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 D30788BD3 for ; Sat, 20 Jan 2024 13:40:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRAde-0004XM-Bh; Sat, 20 Jan 2024 07:39:54 -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 1rRAda-0004X4-4Z for help-guix@gnu.org; Sat, 20 Jan 2024 07:39:50 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rRAdY-0004ta-4B for help-guix@gnu.org; Sat, 20 Jan 2024 07:39:49 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6E160240104 for ; Sat, 20 Jan 2024 13:39:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1705754386; bh=WkHIx6aHbsdHgo543mGuwksv2nieLJ/7zizWrG5jDUM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=FcgnYGD9igv0CAgbdVYi9uyOOAVIgsIuIzqudfJSePk/gM3NPcETOQ2wWA9PB1WjJ A5X4/k3q92q/j9zR3zM3r6rQmFDs+US7CyHkwdocaRQS6wY/3ZQKglmCmGfAe0u3sC jtBUke3cQh9AEQHU/iD63r29Tkqoy4by6qYgSoS8CTomZ1nFlp8e1QBfkCuk+01KZi CIq5QvZ2EvAB0uRQ4Reeg2L9L9RH4mafsp85Ih1PZQE6n7Wk/hNnT6PqgRQS40Iunm Zx7IbGpzvSkIRGMXxMMDd+ycThJ7DAVFb/+fjXzB9J8fBbEAiZjVgOzUTWa7rm/b82 DOkArrk877RoA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4THGJx4Bmpz6tm4; Sat, 20 Jan 2024 13:39:45 +0100 (CET) References: <87jzrdtao6.fsf@posteo.net> <87h6j90zrf.fsf@posteo.net> <877ck5djur.fsf@freakingpenguin.com> From: =?utf-8?Q?Th=C3=A9o?= Tyburn To: Richard Sent Cc: Tomas Volf , help-guix@gnu.org Subject: Re: Make a simple guile script to a package - source local file Date: Sat, 20 Jan 2024 12:32:08 +0000 In-reply-to: <877ck5djur.fsf@freakingpenguin.com> Message-ID: <87frysi3fz.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=theo.tyburn@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.98 X-Spam-Score: -8.98 X-Migadu-Queue-Id: D30788BD3 X-TUID: 7c1L/K6aXYAO Richard Sent writes: > Depending on what you mean by polluting or re-entering the profile > information all the time this might not be what you want. When I write > scripts that rely on specific dependencies I don't want to permanently > install, I write the shebang like this: > > --8<---------------cut here---------------start------------->8--- > #!/usr/bin/env -S guix shell ruby ruby-colorize password-store -- ruby > --8<---------------cut here---------------end--------------->8--- This is a really nice trick ! Unfortunately you either have to reevaluate the profile at each run or create a profile and do something like #!/usr/bin/env -S guix shell -p ${GUIX_EXTRA_PROFILES}/python-pydbus/python-pydbus -- python3 > This relies on /usr/bin/env supporting -S, which to my understanding > isn't POSIX but instead a coreutils extension. Pretty sure --container > would work here but I've not tried it. Also as you mentioned, I fear I will not be able to directly distribute this to people not running guix. But thanks for the hint :)