Turn repo into a guix channel #4
Loading…
Reference in a new issue
No description provided.
Delete branch ":main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With this, the repo itself is a guix channel, thus allowing anyone to use it as a package source.
i'll let juli review as i dont really get the details here.
Fixed the merge conflict.
I've provided a few comments and opened some discussion about how things are done. As always, feel free to disagree with or straight up ignore my comments :3
In general, as long as the channel works, this should be fine. Just make sure the channel works.
ETA: I forgot to mention, the channel should also be documented in both the README and the
.texi
file.@ -0,0 +1,49 @@
(use-modules (gnu packages)
Doesn't this need to be a
define-module
to work properly, with the package as a publicly-exported symbol?Oh yeah, it does. Lemme fix that.
I don't think this is quite the right move. IIUC the package object needs to be in a Guile module and exported publicly so it can be imported. Meanwhile, the
guix.scm
file needs to evaluate directly to a package object. I think the optimal route here is to define the package in the module file thenload
andimport
that file intoguix.scm
, which would then simply return the symbol for the package.So
guix.scm
would be something like...I'm also not sure about the naming scheme for the package file and module.
guile-termenv
makes sense for the Guix name for the package, and as a general name for the project to differentiate from the original; but it looks weird in a module name. Maybe instead make the namespacetermenv package
ortermenv-package
? The former would give us a file called.guix/modules/termenv/package.scm
while the latter would give us.guix/modules/termenv-package.scm
. I dislike the hyphenation in a module name, but it's probably more reasonable than adding a mostly-empty directory.I went ahead and switched the format to be the load/import/return style you suggested.
@ -17,4 +19,3 @@
(native-language-support #f)
(licensing #f)))
(files (libraries
((directory "termenv"
This indentation is all kinds of wonky; we need to setup a
.dir-locals.el
for this project so we can get consistent styling. I'll try to remember to cannibalize the Guix one after this review; it's not all useful outside of Guix proper, but it's a good starting point.Regrettably, I think the formatting is due to hall itself. :(
Aside from that one small comment, LGTM. Make that change and it'll be ready to go!
@ -0,0 +1,50 @@
(define-module (termenv-package))
(use-modules (gnu packages)
Make sure to put these in the module definition
Fixed.