init
This commit is contained in:
16
flake.nix
Normal file
16
flake.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user