unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Make a simple guile script to a package - source local file
@ 2023-10-23 18:01 Théo Tyburn
  2023-10-26 14:18 ` Tomas Volf
  0 siblings, 1 reply; 10+ messages in thread
From: Théo Tyburn @ 2023-10-23 18:01 UTC (permalink / raw)
  To: help-guix

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éo


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-01-20 18:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-23 18:01 Make a simple guile script to a package - source local file Théo Tyburn
2023-10-26 14:18 ` Tomas Volf
2023-10-29  8:44   ` Théo Tyburn
2024-01-19 21:28   ` Théo Tyburn
2024-01-19 21:46     ` Felix Lechner via
2024-01-20 17:19       ` Théo Tyburn
2024-01-19 22:44     ` Richard Sent
2024-01-20 12:32       ` Théo Tyburn
2024-01-20 13:29         ` Tomas Volf
2024-01-20 18:05           ` Théo Tyburn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).