diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-12-26 11:22:27 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-12-26 11:22:27 -0800 |
| commit | 672685474e6ee4ac2efe187fba060a1950493406 (patch) | |
| tree | 675285cb5542cbf89ec93c90e9947fbac58b89bd /flake.nix | |
| parent | actually build the site with nix build (diff) | |
| download | fcuny.net-672685474e6ee4ac2efe187fba060a1950493406.tar.gz | |
add back the resume and generate it with nix
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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 ]; }; } |
