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

2024-01-20 Thread Théo Tyburn
Tomas Volf <~@wolfsden.cz> writes: > [[PGP Signed Part:Undecided]] > On 2024-01-20 12:32:08 +, Théo Tyburn wrote: >> 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 >

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

2024-01-20 Thread Théo Tyburn
Hi Felix, Felix Lechner writes: > Hi Théo, > > On Fri, Jan 19 2024, Théo Tyburn wrote: > >> How do I go about packaging it to make the script available from the command >> line >> without polluting the environment with the dependencies ? > > The best way is wrap-program, or my forthcoming wrap-

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

2024-01-20 Thread Tomas Volf
On 2024-01-20 12:32:08 +, Théo Tyburn wrote: > 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 >

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

2024-01-20 Thread Théo Tyburn
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<---

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

2024-01-19 Thread Richard Sent
Théo Tyburn writes: > Hi again, > > Now I want to package a python script that has some dependencies on > python packages. > > How do I go about packaging it to make the script available from the command > line > without polluting the environment with the dependencies ? I am looking > for a simi

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

2024-01-19 Thread Felix Lechner via
Hi Théo, On Fri, Jan 19 2024, Théo Tyburn wrote: > How do I go about packaging it to make the script available from the command > line > without polluting the environment with the dependencies ? The best way is wrap-program, or my forthcoming wrap-executable. Kind regards Felix

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

2024-01-19 Thread Théo Tyburn
Hi again, Now I want to package a python script that has some dependencies on python packages. How do I go about packaging it to make the script available from the command line without polluting the environment with the dependencies ? I am looking for a similar effect to running `guix shell py

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

2023-10-29 Thread Théo Tyburn
Tomas Volf writes: > I believe you are looking for (source (local-file ..)), example can be found > in > this excellent blog post: > > https://guix.gnu.org/en/blog/2023/from-development-environments-to-continuous-integrationthe-ultimate-guide-to-software-development-with-guix/ That's exactly

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

2023-10-26 Thread Tomas Volf
On 2023-10-23 18:01:12 +, Théo Tyburn wrote: > 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 t

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

2023-10-26 Thread Théo Tyburn
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") >