From 37dcff74f2b2f1da8473a3597e54767c706d0a80 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 9 Oct 2025 11:32:05 +0200 Subject: More setup commits. Adding the great build files and git ignores --- .nix/derivation.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .nix/derivation.nix (limited to '.nix') 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 + ''; +} -- cgit v1.2.3