July 11, 2024 at 9:34 PM, "kiasoc5" <kias...@disroot.org> 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!
 
That is a really solid job bro!  Packaging rust stuff, I've heard is really 
hard.  So congrats!  Also I would perhaps wait a few more days to see if any 
other experienced developer gives you some tips on where to store your 
dependencies.  Then I would submit a patch to guix-patc...@gnu.org.  That way 
we can put your contribution in our bug tracker, and we won't lose it.  The 
guix manual has a section for how to contribute a patch:  
https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html


Thanks,

Joshua

Reply via email to