Hello!
I’m glad the Python code was helpful. :) I’ve commented on some of
your other points below.
"Pierre-Henry F." writes:
> Development:
>
> $ guix environment --manifest=./guix/manifest.scm --pure --container
> $ # Develop things. Add dependencies at will in manifest.scm
>
>
>
> import os, shutil, stat, subprocess, guix.build.utils
>
> # Unpack
> source = _build_inputs["source"]
> tar = _build_inputs["tar"]
> lzip = _build_inputs["lzip"]
> os.putenv("PATH", ":".join([tar + "/bin", lzip + "/bin"]))
> subprocess.run(["tar", "--lzip", "-xvf", source])
>
> # Configure
>
Hello,
"Pierre-Henry F." writes:
>
> Hello Tim !
>
> I'm using a couple of hours here an there to try to rebuild the package you
> gave me (Thank you for that :-) ).
> So far, I've built a very stupid but "working" package (see below if you
> really want to ;-) ).
Looks good so far!
> Will
Hi Pierre,
"Pierre-Henry F." writes:
> So, we have, in ~bash~:
>
> $ lzip --decompress release_3.tar.lz
> $ tar xf release_3.tar
> $ cd blog/ # coming from the preceding line.
> $ tree
> .
> ├── bin
> │ └── program
> └── src
> └── hello_world.py
>
> $ cat
> As a note for the future, it would be helpful to include the error
> message that you saw when things went wrong. Here, I’m assuming that
> Guix said:
>
> guix build: error: #: not something we can build
>
> Running “guix build --file=X” causes Guix to build the last expression
> evaluated
Hi Pierre,
"Pierre-Henry F." writes:
> Would someone help defining a trivial package?
Sure!
> Here is an attempt at defining the package (incomplete, does not work) in
> blog.scm:
>
> (define-module (blog)
> #:use-module (guix packages)
>
Hello!
Would someone help defining a trivial package?
Essentially:
…/releases$ tree
.
├── release_1.tar.lz
├── release_2.tar.lz
└── release_3.tar.lz
…/release_3$ tree
.
├── bin
│ └── program
└── src
└── hello_world.py
…/release_3