packages: Add typst and dependencies #63
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
guix-science/guix-science!63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "alxsim/guix-science:typst"
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?
Hi,
If you don't know Typst, it is a typesetting system very similar to LaTeX.
(Having used LaTeX during a few years, it's really a good contender! It's great!)
Anyway, here is an attempt to package it. I think it fits well into guix-science as it is designed for scientific typesetting primarily. Additionally, I have to say I don't have the stamina to push this on main guix for now.
Happy to make changes if things are not looking proper.
Thanks
Hi @alxsim
Thanks, cool! Some months ago, I had a chat with colleagues and they convinced to try... but ouch the installation. So thanks!
Well, that's something to review. Because there is some packages... Heh!
I understand that you do not create one commit per package. :-) However, could you have the first commit that have the header (Copyright), the module declaration (
define-module) and maybe one package, then a second commit that add all the rest. Is it doable on your side?@civodul @rgarbage How can I check about the CI? About the substitutes? And about the failures if any?
Hi @zimoun ,
You'll find the CI result here:
https://guix.bordeaux.inria.fr/jobset/forgejo-pull-requests-guix-science-typst-63
Hello!
Nice work, @alxsim! The bad news (actually not necessarily that bad) is
that there’s another submission of Typst gathering dust at
https://issues.guix.gnu.org/72506.
I think it would make sense to have this sort of tool in Guix proper,
but it’s probably okay to have it in Guix-Science in the interim.
Everything successfully built.
@zimoun Yes that's doable I think, I'll try that maybe this week-end and push the changes.
Cool, thanks! In order to learn fishing myself, my best luck is to go to https://guix.bordeaux.inria.fr and look for the MR number (here 63), right?
And if I already have
guix.bordeaux.inria.frconfigured for substitutes, all is fine, right?Yes maybe we can have that in guix-science, and when I get more motivation I can try working out a patch for guix above this issue.
@alxsim Feel free to give a look at https://issues.guix.gnu.org/72506 as @civodul mentioned; maybe it might provide inspiration. :-)
8ecbff3422toefa112e41eHi,
I modified the commits to add some things incrementally (the order is so that everything should build at each stage).
Feel free to edit or ask for modifications.
I thought about another argument to have typst in guix-science: it's not stable yet, and is expected to change relatively quickly. Maybe it's better to wait for it to reach 1.0 to add it to main guix and try it here in the meantime?
Hello @alxsim,
It looks good to me. One question though: when we'll want to upgrade it, I guess we'd rather regenerate the whole file. Can you confirm that there are no edits to what
guix importproduced, apart from the header? If so, you could add the command that you used at the top of the file? (Or, if there are edits, mention what one should pay attention to when upgrading.)Thanks!
Ludo'.
@civodul good question. I didn't plan on upgrading this way.
There are some modifications to
guix importoutput that I thought would ease upgrade, such as the top variabletypst-versionwhich is reused in all typst specific dependencies.Additionally,
rust-typst-cli-0.12was renamed to simplytypstas this is the entry point.I've dropped the version in crate names that are typst specific dependencies (as rust-...-dyn) also for more strainghtforward update.
So on upgrade my game plan was 1. update version variable, 2. fix the dozen of sha, 3. fix the few rust dependencies that need updating for the upgrade.
But you're right it might be easier in the end to just not touch the
guix importoutput. I don't have a good perspective on the best way forward.Well,
guix refreshshould be able to do a decent job, but it might be even simpler to just re-run the importer.Anyway, it might be hard to tell in the abstract which approach would work well. Perhaps we can start with what you’ve already done and see how it goes when “we” (you? :-)) try to upgrade it.
WDYT?
I'd say leave as is, if I find it too painful on the first upgrade in a few months I'll change strategy and stay close to the
guix importoption.I'm happy to keep track of the necessary upgrades/additions on everything related to typst yes.
efa112e41eto85e684db27Alright, let's do that.
Merged, thanks, @alxsim!