From 672685474e6ee4ac2efe187fba060a1950493406 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 26 Dec 2024 11:22:27 -0800 Subject: add back the resume and generate it with nix --- flake.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index d49334c..036644d 100644 --- a/flake.nix +++ b/flake.nix @@ -8,11 +8,11 @@ }; outputs = - { self - , nixpkgs - , flake-utils - , pre-commit-hooks - , + { + self, + nixpkgs, + flake-utils, + pre-commit-hooks, }: flake-utils.lib.eachDefaultSystem ( system: @@ -37,10 +37,15 @@ buildInputs = [ zola git + texlive.combined.scheme-small ]; buildPhase = '' mkdir -p $out ${pkgs.zola}/bin/zola build -o $out -f + ${pkgs.pandoc}/bin/pandoc --self-contained --css static/css/resume.css \ + --from markdown --to html --output $out/resume.html resume/resume.md + ${pkgs.pandoc}/bin/pandoc --self-contained --css static/css/resume.css \ + --from markdown --to pdf --output $out/resume.pdf resume/resume.md ''; dontInstall = true; }; @@ -60,7 +65,7 @@ pre-commit-check = pre-commit-hooks.lib.${system}.run { src = ./.; hooks = { - nixpkgs-fmt.enable = true; + nixfmt-rfc-style.enable = true; check-toml.enable = true; check-yaml.enable = true; check-merge-conflicts.enable = true; @@ -83,6 +88,7 @@ awscli imagemagick exiftool + treefmt ]; }; } -- cgit v1.2.3