summaryrefslogtreecommitdiff
path: root/.nix/derivation.nix
blob: 3be1695d181a34e0602a0c45895b62b7747940a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib
, stdenv
, typst
, typstPackages
}:

stdenv.mkDerivation {
	pname = "phd_fluid_mechanics_report";
	version = "0.0.0";

	src = ../typst;

	nativeBuildInputs = [
		typst
	] ++ (with typstPackages; [
		charged-ieee
	]);

	buildPhase = ''
		typst compile report.typ out.pdf
	'';

	installPhase = ''
		mkdir -p $out
		mv out.pdf $out/report.pdf
	'';
}