diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-10-09 11:32:05 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-10-09 11:32:05 +0200 |
| commit | 37dcff74f2b2f1da8473a3597e54767c706d0a80 (patch) | |
| tree | a24db06bddeaa61207fa8f36eb63e1586a06cbac /.nix | |
| parent | fad125a79659370f9e10a2a45de07e95fbc5c0de (diff) | |
| download | phd-fluid_mechanics_report-37dcff74f2b2f1da8473a3597e54767c706d0a80.tar.gz | |
More setup commits. Adding the great build files and git ignores
Diffstat (limited to '.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 + ''; +} |
