Simple typst application

This commit is contained in:
didier amyot committed 2023-04-19 08:44:16 -04:00
1 parent 289f78804f
commit 2cdd388d66
3 files changed
+23 -2

No files matched your search

+11 -2
View File
@@ -1,5 +1,5 @@
{
description = "Using typst as 3rd party flake in devshell";
description = "Simple typst application";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
@@ -14,7 +14,16 @@
in
{
packages = {
default = pkgs.hello;
default = pkgs.stdenv.mkDerivation {
name = "document";
src = ./.;
buildInputs = [typst];
buildPhase = "${pkgs.typst}/bin/typst compile main.typ main.pdf";
installPhase = ''
mkdir $out
mv main.pdf $out
'';
};
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [deno typst];