diff options
Diffstat (limited to '.nix/derivation.nix')
| -rw-r--r-- | .nix/derivation.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.nix/derivation.nix b/.nix/derivation.nix new file mode 100644 index 0000000..5a1f1db --- /dev/null +++ b/.nix/derivation.nix @@ -0,0 +1,24 @@ +{ lib +, stdenv +, typst +}: + +stdenv.mkDerivation { + pname = "phd_fluid_mechanics_report"; + version = "0.0.0"; + + src = ../typst; + + nativeBuildInputs = [ + typst + ]; + + buildPhase = '' + typst compile report.typ out.pdf + ''; + + installPhase = '' + mkdir -p $out + mv out.pdf $out/report.pdf + ''; +} |
