Skip to content

Commit

Permalink
Switch CV to Typst.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtwco committed May 22, 2024
1 parent 6db1a8c commit 607f75d
Show file tree
Hide file tree
Showing 4 changed files with 298 additions and 238 deletions.
2 changes: 2 additions & 0 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ with lib;
python3
# GitHub CLI
gh
# Typst
typst
] ++ (optional stdenv.isLinux [
# Used by `breakpointHook` in nixpkgs.
cntr
Expand Down
11 changes: 3 additions & 8 deletions web/src/content/curriculum-vitae/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{ stdenv, lib, gitignoreSource, texlive }:
{ stdenv, lib, gitignoreSource, typst }:

stdenv.mkDerivation rec {
name = "curriculum_vitae.pdf";

src = gitignoreSource ./.;

nativeBuildInputs = [
(texlive.combine {
inherit (texlive) amsfonts amsmath fancyhdr fontspec hyperref preprint scheme-basic xcolor;
inherit (texlive) xetex;
})
];
nativeBuildInputs = [ typst ];

buildPhase = ''
runHook preBuild
xelatex ./default.tex
typst compile ./default.typ --font-path ./fonts
runHook postBuild
'';

Expand Down
230 changes: 0 additions & 230 deletions web/src/content/curriculum-vitae/default.tex

This file was deleted.

Loading

0 comments on commit 607f75d

Please sign in to comment.