{"id":44753274,"url":"https://github.com/typst/typst-flake","last_synced_at":"2026-02-15T23:30:39.876Z","repository":{"id":331666232,"uuid":"1110245071","full_name":"typst/typst-flake","owner":"typst","description":"Nix flake for Typst","archived":false,"fork":false,"pushed_at":"2026-01-31T07:08:51.000Z","size":19,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-31T18:38:50.452Z","etag":null,"topics":["nix","typst"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-04T23:11:50.000Z","updated_at":"2026-01-31T03:24:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/typst/typst-flake","commit_stats":null,"previous_names":["typst/typst-flake"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/typst/typst-flake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typst%2Ftypst-flake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typst%2Ftypst-flake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typst%2Ftypst-flake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typst%2Ftypst-flake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typst","download_url":"https://codeload.github.com/typst/typst-flake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typst%2Ftypst-flake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29492445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nix","typst"],"created_at":"2026-02-15T23:30:39.246Z","updated_at":"2026-02-15T23:30:39.870Z","avatar_url":"https://github.com/typst.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typst Flake\n\nThis repository contains a Nix Flake[^1] for Typst. It exports a Nix package that can build Typst's CLI using the Nix tool. It is compatible at least with the latest Typst release, and should also build the latest commits on Typst's `main` branch. Should any problems or incompatibilities arise, please contribute a fix or open an issue!\n\n## Usage\n\n### Compiling Typst\n\nTo build and run Typst through the Flake using its default Typst version (usually the latest release), first ensure Nix is properly installed with Flake support.[^2] Then, simply execute the command below with the appropriate arguments. For example, to compile a Typst file:\n\n```sh\nnix run github:typst/typst-flake -- compile doc.typ\n```\n\nAlternatively, you can compile Typst without running using the command below, which will output a runnable Typst binary under `result/bin/typst`:\n\n```sh\nnix build github:typst/typst-flake\n```\n\n### Compiling a specific Typst commit\n\nTo compile another Typst version or commit, you can use `--override-input` when building. Use one of the sample commands below. You can replace `0.13` in the second example with the specific commit or branch you'd like to build.\n\n```sh\n# Compile the latest main commit\nnix run github:typst/typst-flake --override-input typst github:typst/typst -- --help\n\n# Compile a specific branch: 0.13 (release 0.13.1)\nnix run github:typst/typst-flake --override-input typst github:typst/typst/0.13 -- --help\n\n# Compile a specific commit: d60ec29\nnix run github:typst/typst-flake --override-input typst github:typst/typst/d60ec29 -- --help\n```\n\n### Development shell\n\nYou can use the command below to spawn a development shell. It should contain `rustc` and `cargo` so you can develop Typst as a contributor.\n\n```sh\nnix develop github:typst/typst-flake\n```\n\n## Contributing\n\nTo contribute to the flake, simply clone the repository locally, apply some changes, and build and run Typst with the same commands as above, but replacing `github:typst/typst-flake` with `.` (for the current directory). For example, to build a runnable Typst binary with your changes to the flake, use the command below:\n\n```sh\nnix build .\n```\n\n## A note on compatibility\n\nPlease note that the flake is maintained as a best-effort by the community and not officially supported by the Typst team. As such, it is not guaranteed to always be compatible with the latest Typst releases or commits, which might fail to build using the latest version of the flake. However, we will accept contributions to fix any such problems, should they arise.\n\n## License\n\nAll code in this repository is licensed under Apache-2.0.\n\n[^1]: Flakes (official NixOS Wiki): https://wiki.nixos.org/wiki/Flakes\n[^2]: Nix installation guide (official NixOS Wiki): https://wiki.nixos.org/wiki/Nix_Installation_Guide\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypst%2Ftypst-flake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypst%2Ftypst-flake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypst%2Ftypst-flake/lists"}