python importers as an alternative to propagated-inputs

2024-01-08 Thread Justin Veilleux
Hi everyone. I was thinking about the propagated-inputs field in package definitions. As I understand it, it is useful as a way to replace RPATHs in packages that aren't compiled or don't support them. I was reading the documentation on https://docs.python.org/3/reference/import.html. It looks l

using shepherd's (shepherd service repl) in guix system

2023-12-21 Thread Justin Veilleux
Hi. I thought it would be interesting to have a shepherd service run a repl like in https://www.gnu.org/software/shepherd/manual/html_node/REPL-Service.html. Since there is no shepherd repl service in a (gnu services *) module, I created a shepherd-service-type and shepherd-service (I copied the co

service extensions to guix-service-type

2022-04-10 Thread Justin Veilleux
Hi guix-devel. For my os.scm, I want to create a service which encapsulates the process of adding channels to the global channels file, adding substitute urls to the daemon and also adding authorized keys to the daemon. With the service extension system, I was able to do the first thing by ext

Getting the name of file-like objects

2022-04-01 Thread Justin Veilleux
Hi everyone. I'm currently writing a set of helper functions (usually written using `computed-file`  which act on file like objects to transform them in some way. For instance, I have a `decompress` function which, given a file-like object pointing to an archive, will return a computed file obje