Skip to content

Add flake to the repository#1

Merged
PgBiel merged 7 commits intomainfrom
init-flake
Jan 5, 2026
Merged

Add flake to the repository#1
PgBiel merged 7 commits intomainfrom
init-flake

Conversation

@PgBiel
Copy link
Copy Markdown
Collaborator

@PgBiel PgBiel commented Dec 8, 2025

This repository will be the new home for Typst's flake, and this PR aims to bring the existing flake from the main Typst repo here.

The goal here is to ensure the flake can still be used for its usual purposes, as much as possible: compile Typst and pop dev shells.
In this sense, the idea is that one can override this Flake's inputs to specify a particular Typst commit to compile, using either --override-input on the CLI or inputs.typst.inputs.typst.url = "..." when importing this Flake as an input of another.

The goal is to also add CI so the flake is properly tested as Typst evolves. However, the flake itself will only be updated on each Typst release (or if some fix is needed).

There are still some questions to solve before merging this PR, as noted in the comments.

Copy link
Copy Markdown
Collaborator Author

@PgBiel PgBiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would appreciate some input from Nix folks, cc @drupol

Comment thread flake.nix
Comment thread flake.nix
Comment thread flake.nix
@Andrew15-5
Copy link
Copy Markdown

Andrew15-5 commented Dec 8, 2025

I have at least one problem with this, so I opened #3. Though the second one would be to use alejandra formatter instead.

@PgBiel PgBiel force-pushed the init-flake branch 3 times, most recently from e36912d to 712dcf9 Compare January 5, 2026 22:22
@PgBiel PgBiel marked this pull request as ready for review January 5, 2026 22:26
@PgBiel PgBiel merged commit 310637b into main Jan 5, 2026
@PgBiel PgBiel deleted the init-flake branch January 5, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants