diff --git a/.gitignore b/.gitignore index b2be92b..dd5e26f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ result +*.pdf diff --git a/flake.nix b/flake.nix index 8a69f70..9cf2ad8 100644 --- a/flake.nix +++ b/flake.nix @@ -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]; diff --git a/main.typ b/main.typ new file mode 100644 index 0000000..560bef1 --- /dev/null +++ b/main.typ @@ -0,0 +1,11 @@ += Introduction +In this report, we will explore the +various factors that influence _fluid +dynamics_ in glaciers and how they +contribute to the formation and +behavior of these natural structures. + ++ The climate ++ The topography ++ The geology +