Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All of ELPA? #8

Open
jgarte opened this issue Nov 17, 2022 · 5 comments
Open

All of ELPA? #8

jgarte opened this issue Nov 17, 2022 · 5 comments

Comments

@jgarte
Copy link

jgarte commented Nov 17, 2022

Hi, first of all, congrats on this amazing channel.

I shared it on the mailing list: https://lists.gnu.org/archive/html/guix-devel/2022-11/msg00147.html

would it be possible to generate guix packages for all of elpa also?

@jgarte jgarte changed the title all of elpa? Nov 17, 2022
@jgarte jgarte changed the title All of Elpa? Nov 17, 2022
@babariviere
Copy link
Owner

babariviere commented Nov 17, 2022

Hello.

Thanks!

Yes, it would be possible, in theory. What we would need is an API similar to what provides melpa with https://melpa.org/archive.json to get the list of all packages.

After that, you would just need to parse the entries, use (guix import elpa) and create the packages as I have done in https://github.com/babariviere/guix-emacs/blob/master/scripts/update.

If you want to use it for guix repo, on things that should be reworked might be the override system. I still find it ugly and inefficient, but I am too lazy to rework it a second time haha. But if we manage to do overrides during code generation, it would be really cool and probably a lot cleaner.

@jgarte
Copy link
Author

jgarte commented Nov 18, 2022

@babariviere

Do you think it would be too difficult to track nightlies for olive in an automated way with Guix?

https://www.olivevideoeditor.org/nightly.php

I was thinking to generate a Guix package for each olive nightly commit that passes their CI.

I think that your repo will provide some inspiration for this.

@jgarte
Copy link
Author

jgarte commented Nov 18, 2022

Hello.

Thanks!

Yes, it would be possible, in theory. What we would need is an API similar to what provides melpa with https://melpa.org/archive.json to get the list of all packages.

After that, you would just need to parse the entries, use (guix import elpa) and create the packages as I have done in https://github.com/babariviere/guix-emacs/blob/master/scripts/update.

If you want to use it for guix repo, on things that should be reworked might be the override system. I still find it ugly and inefficient, but I am too lazy to rework it a second time haha. But if we manage to do overrides during code generation, it would be really cool and probably a lot cleaner.

automating a mirror of quicklisp would also be an awesome one to try but I heard that the best way is to get the data out with asdf build system is the best way.

https://beta.quicklisp.org/dist/quicklisp/2022-11-07/systems.txt

@babariviere
Copy link
Owner

@babariviere

Do you think it would be too difficult to track nightlies for olive in an automated way with Guix?

olivevideoeditor.org/nightly.php

I was thinking to generate a Guix package for each olive nightly commit that passes their CI.

I think that your repo will provide some inspiration for this.

I think you can but I can't see any API to provide the list of nightlies in a data friendly format. I guess you can only parse the HTML.

automating a mirror of quicklisp would also be an awesome one to try but I heard that the best way is to get the data out with asdf build system is the best way.

beta.quicklisp.org/dist/quicklisp/2022-11-07/systems.txt

Yes! This one won't be too hard. But again, the issue will be external dependencies. But, you will be able to generate all packages.

@jgarte
Copy link
Author

jgarte commented Nov 19, 2022

@babariviere

All the PureScript packages are here in dhall format: https://github.com/purescript/package-sets

Would be cool if Guix had support for PureScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants