help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make a simple guile script to a package - source local file


From: Théo Tyburn
Subject: Make a simple guile script to a package - source local file
Date: Mon, 23 Oct 2023 18:01:12 +0000

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]