diff options
Diffstat (limited to '')
| -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 ]; }; } |
