move resume workflow entirely to nix

This commit is contained in:
2026-03-27 15:37:59 -04:00
parent f3b32e9c69
commit f84d1db263
2 changed files with 29 additions and 3 deletions

View File

@@ -31,8 +31,34 @@
);
preCommitTool = if pkgs ? prek then pkgs.prek else pkgs.pre-commit;
resume_final_pdf = "Alice_Huston_Resume_Software_Engineer.pdf";
in
{
packages.default = pkgs.stdenvNoCC.mkDerivation {
pname = "resume-pdf";
version = "0.1.0";
src = pkgs.lib.cleanSource ./.;
nativeBuildInputs = [
tex
];
buildPhase = ''
runHook preBuild
latexmk -pdf -interaction=nonstopmode -halt-on-error main.tex
mv main.pdf ${resume_final_pdf}
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p "$out"
install -m 0644 ${resume_final_pdf} "$out/${resume_final_pdf}"
runHook postInstall
'';
};
devShells.default = pkgs.mkShell {
packages = [
tex