From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +LcIGnhwOmUjcwEAG6o9tA:P1 (envelope-from ) for ; Thu, 26 Oct 2023 15:58:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +LcIGnhwOmUjcwEAG6o9tA (envelope-from ) for ; Thu, 26 Oct 2023 15:58:16 +0200 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 2C18F42833 for ; Thu, 26 Oct 2023 15:58:16 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cwFXID+3; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698328696; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=QPok3TN4VP0CQApntWdjhCMlT8PL1gXOmuKTQAYu/vg=; b=QpvpzGQJiBQa3XjJfZPXPgliJagKbKIhgCJx0EbJP8TgH8u2Jr51aWR6ODL3DNauGlgLus ekMTuwHFn59UfhUhXyYzL9qdz1J2kObkCHXvFaRqiSi+vNcizXwoC1KmgfCYsHFFkr7b6K 5kt40ZdkqLle6Qw30QL5mEsQjrIXQXa+03jHpxL76DYGdZI3ffeXy8c7pCU1FkPSnDYQGV ahoR9n7MnC8Cd9fr1fjDR5+UDYEx6rKnxCEY6aZb0FeyIVUxbZ/0y/HJk6pSEqa0w5ToBu QzYmtyCsGydd+YwuIGEIdBG5xrWiSeqBm1+f10LBDxZEEqW6raV0vtCVqsd1ag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cwFXID+3; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698328696; a=rsa-sha256; cv=none; b=A0YpvrMI/+caJH7s9T/iGPwK37SgCMesj0wA1Cgtvy2SPL0QyPUfQRoqG/xERMq2SReqJH rNzYeAEJT76hA4JgCMcDR5JM8OcN+H9fh1CNznHYczcZ51TCM+oPXH+xsANUpGqN2L2yEn gvBfvGfoWXyWOZb09gF0rMbxWXnUWfXm6daK0erS6p757maEwxQB3qrc0FMZEGK1CUhYCt 9Cjc9c3t6B94/Btf1pZkmEg1IIW78O/0CIOgXd+WzlMTW27LOTTK2Lw2c51vqabQJF4E02 hEPIaduUf6n7R7osQCTQB3XYIvUjp+BWqf3byhEBBlJKNYDLh0smM3H9XWNiGA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qw0rw-0002vP-N5; Thu, 26 Oct 2023 09:57:52 -0400 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 1qv0MQ-0001ub-7y for help-guix@gnu.org; Mon, 23 Oct 2023 15:13:10 -0400 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 1qv0MO-0002Dn-AL for help-guix@gnu.org; Mon, 23 Oct 2023 15:13:10 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D5176240101 for ; Mon, 23 Oct 2023 21:13:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1698088383; bh=hTm95aypP9MSvWnxYZg2SEEQXMalpraFdEoMeoQayUA=; h=From:To:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=cwFXID+3+ygwaegXmCWjg21b7QkJuW1rlbfuVp8IE/lhK/i9B/A8HQ019Z52UJ2nm Q+B2vrAfbA0sBTV6GuWmxZWdNVIntGEszh6boLV5hEEV86+IES+6Bwo/Xfe/MgLwbB //uF6oQKE3f/Wzq9NxZzLSKkPPtAVByHXAktrrOPpnDJTaOQSwtS1QKiGjuM1PGsZJ nw1dJuHIXAf6edRvUJnHcsboBNg61ASOdnqOajVi1D1Uirw2XujIkQhpB7KU5VyZrg lFdXyNw89IktMiL65O+zZfk9RWWscIR6F8gCzyVVzMRwaYHUD0gcIee34B0d+IiBM3 gO7nC3vwD2vww== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SDlFq3sGdz6tvk for ; Mon, 23 Oct 2023 21:13:03 +0200 (CEST) From: =?utf-8?Q?Th=C3=A9o?= Tyburn To: help-guix@gnu.org Subject: Make a simple guile script to a package - source local file Date: Mon, 23 Oct 2023 18:01:12 +0000 Message-ID: <87jzrdtao6.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 26 Oct 2023 09:57:51 -0400 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-Spam-Score: -8.80 X-Spam-Score: -8.80 X-Migadu-Queue-Id: 2C18F42833 X-Migadu-Scanner: mx13.migadu.com X-TUID: nmO1FR+FgWru Hi, I have some guile CLI scripts and I would like to make them accessible in $PATH by putting each of them in a package. Is there a simple way to do this without having to make a git repository ? What I would like is something like this: > (package > (name "script1") > (version "0.0.0") > (source (LOCAL-DIR "/path/to/scripts/")) > (build-system trivial-build-system)) and then copy the guile script to /bin using the trivial build-system. I guess what I'm looking for is a function like LOCAL-DIR. It would be similar to git-checkout but wouldn't require git. Is there such a thing ? Cheers, Th=C3=A9o