-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsnapcraft.tpl.yaml
41 lines (37 loc) · 1.1 KB
/
snapcraft.tpl.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: typst
base: core22
version: "<version>"
summary: A new markup-based typesetting system that is powerful and easy to learn.
description: |
Typst is a new markup-based typesetting system for technical writing.
It is designed to be an alternative both to advanced tools like LaTeX
and simpler software like Word and Google Docs. Our goal with Typst is to
build a typesetting tool that is highly capable and a pleasure to use.
grade: stable
confinement: strict
parts:
rust-deps:
plugin: nil
build-packages:
- curl
override-pull: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain "1.81"
rust:
plugin: rust
source: https://github.com/typst/typst
source-type: git
source-tag: "<tag>"
rust-path:
- "./crates/typst-cli/"
rust-features:
- vendor-openssl
build-packages:
- pkg-config
apps:
typst:
command: "bin/typst"
plugs:
- desktop # access host fonts
- network # retrieve packages
- home # read sources and write output
- removable-media # read sources on media