This commit is contained in:
2025-08-04 15:06:13 +08:00
commit 38d2c0ce4f
4 changed files with 166 additions and 0 deletions

16
flake.nix Normal file
View File

@@ -0,0 +1,16 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = inputs:
let
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
typst = pkgs.typst.withPackages (ps: with ps; [ minimal-presentation ]);
in
{
packages.x86_64-linux.default = pkgs.runCommand "presentation" { nativeBuildInputs = [ typst ]; src = ./.; }
''
mkdir -p $out
typst compile $src/main.typ $out/main.pdf
'';
};
}