Skip to content

Commit f52cac6

Browse files
committed
Clean up template comments
1 parent b2c2107 commit f52cac6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

template/flake.nix

+6-5
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@
3737
# [Optional] The name of the derivation
3838
# Default: ${pname}-${version}
3939
name = "example";
40-
# Source directory
40+
# Source directory to copy to the store.
4141
src = ./.;
4242
# [Optional] The entry-point to the document, default is "main.typ"
4343
# This is relative to the directory input above.
4444
# Default: "main.typ"
4545
file = "main.typ";
4646
# [Optional] Whether to pull in Typst Universe or not (it is large!)
4747
# Default: true
48+
# If used in a flake this won't effect whether Typst Universe is copied
49+
# to the store or not. It will effect whether it is symlinked to the
50+
# rest of the dependencies though.
4851
universe = true;
4952
# [Optional] Any non-universe packages. The attribute key is the namespace.
5053
# The package must have a typst.toml file in its root.
@@ -54,6 +57,7 @@
5457
};
5558
# [Optional] The format to output
5659
# Default: "pdf"
60+
# Can be either "pdf" or "html"
5761
format = "pdf";
5862
# [Optional] The fonts to include in the build environment
5963
# Note that they must follow the standard of nixpkgs placing fonts
@@ -62,13 +66,10 @@
6266
fonts = [
6367
pkgs.roboto
6468
];
65-
# [Optional] Patches to the Typst document
66-
# Default: []
67-
typstPatches = [ ];
6869
# [Optional] Patches to the Typst Universe repo
6970
# To apply a patch, it much be a patch to the entire Typst Packages repo.
7071
# Default: []
71-
univerPatches = [ ];
72+
universePatches = [ ];
7273
};
7374

7475
devShells.${system}.default = pkgs.mkShell {

0 commit comments

Comments
 (0)