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

+1
View File
@@ -1 +1,2 @@
result result
*.pdf
+11 -2
View File
@@ -1,5 +1,5 @@
{ {
description = "Using typst as 3rd party flake in devshell"; description = "Simple typst application";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
@@ -14,7 +14,16 @@
in in
{ {
packages = { 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 { devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [deno typst]; buildInputs = with pkgs; [deno typst];
+11
View File
@@ -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