From: "Ethan Reece" <guix@ethanreece.com>
To: kiasoc5 <kiasoc5@disroot.org>, guix-devel@gnu.org
Subject: Re: Packaging Typst
Date: Sun, 14 Jul 2024 14:52:35 -0500 [thread overview]
Message-ID: <272e4458-15fd-424a-ab74-4965e0e9958d@app.fastmail.com> (raw)
In-Reply-To: <b280cc0d-0cd6-420f-9d8a-c749951ae58f@disroot.org>
[-- Attachment #1: Type: text/plain, Size: 3222 bytes --]
> Do the typst tests past? Does the binary work?
The typst-cli tests pass and the binary works (I am currently using it for a small project). For the typst library, the tests require typst_dev_assets which isn't packaged in crates.io or referred to in the typst crate, so I would need to point rust-typst to the GitHub version instead of the Crates version or make it modify the Crates version to load typst_dev_assets correctly, and also add rust-typst-dev-assets to Guix which would point to the typst/typst-dev-assets GitHub repo (not sure whether I should do this or just disable tests, and should this also go in crates-io.scm or a different file).
> I believe there as a package manager for typst, so if typst packages will be included in guix, would be worth creating a separate file, otherwise the typst cli package could go in markup.scm.
From what I'm seeing the `typst compile` command, which generates the file, also downloads imported packages from Typst Universe but also accepts local and custom directories, so creating a separate typst.scm file would probably be good.
On Thu, Jul 11, 2024, at 20:34, kiasoc5 wrote:
> On 7/11/24 02:21, Ethan Reece wrote:
> > Hello,
> >
> > I created a file that packages Typst and its dependencies, and I'm
> > trying to figure out how to contribute it to the Guix project. What I've
> > done to generate the file:
> >
> > * guix import -i typst-guix.scm crate --recursive
> > --recursive-dev-dependencies --allow-yanked typst-cli
> > * I had to run this again for pretty_assertions@0.5 for some reason
> > * Marked the modules licensed as "Unicode-3.0" as license:unicode
> > * Marked the modules licensed as "Apache-2.0 with LLVM-exception" as
> > license:asl2.0
> > * Added a snippet at the end (generated with GPT but appears to work)
> > that allows me to build everything in it using "guix build -m
> > typst-guix.scm" and used this to verify that everything builds
> > * Bumped a few packages from rust-1.75 to rust-1.76 that were
> > complaining about it
> > * For the packages where tests or build failed, disabled tests or
> > build for that package so that there are no errors when I run the
> > guix build command
> > * Added pkg-config and openssl as dependencies for rust-typst-cli-0.11
> >
> > The file has about 2500 lines worth of dependencies, and I'm a bit
> > confused on how I should handle that. Should I redo all of this on
> > "crates-io.scm" or a different file? What branch should I do this on?
> > Should rust-typst-cli be changed to just typst or put in a different
> > file as that?
> >
> > - Ethan
>
> Good job getting this to work!
>
> Do the typst tests past? Does the binary work?
>
> I believe that all the crates that came from crates.io should go into
> crates-io.scm. The typst binary package should simply be called "typst"
> unless there is a need to distinguish between a cli and gui version. I
> believe there as a package manager for typst, so if typst packages will
> be included in guix, would be worth creating a separate file, otherwise
> the typst cli package could go in markup.scm. I'll let more experienced
> members confirm or deny these assertions.
>
[-- Attachment #2: Type: text/html, Size: 4541 bytes --]
next prev parent reply other threads:[~2024-07-14 20:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 6:21 Packaging Typst Ethan Reece
2024-07-12 1:34 ` kiasoc5
2024-07-13 13:40 ` jbranso
2024-07-14 19:52 ` Ethan Reece [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-11-02 20:21 packaging Typst Steve George
2023-11-02 20:32 ` Alexis Simon
2023-11-03 21:41 ` Alexis Simon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=272e4458-15fd-424a-ab74-4965e0e9958d@app.fastmail.com \
--to=guix@ethanreece.com \
--cc=guix-devel@gnu.org \
--cc=kiasoc5@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).