diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69a2f4c..378e130 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,7 @@ jobs: - name: Build document run: | mkdir -p output - nix build .#cv --out-link result-cv + nix build .#cv --out-link result-cv -L cp -vr --dereference $(readlink -f result-cv) cv cp -ar cv/* output/ diff --git a/flake.nix b/flake.nix index eb25316..2a12582 100644 --- a/flake.nix +++ b/flake.nix @@ -49,9 +49,15 @@ src = pkgs.lib.cleanSource ./.; + nativeBuildInputs = [ + typst + ]; + buildPhase = '' runHook preBuild + ${lib.getExe typst} fonts --ignore-system-fonts --font-path ${fontsConf} + ${lib.getExe typst} \ compile \ --root ./. \ @@ -84,6 +90,8 @@ runtimeInputs = [ typst ]; text = '' + ${lib.getExe typst} fonts --ignore-system-fonts --font-path ${fontsConf} + ${lib.getExe typst} \ compile \ --root ./. \ diff --git a/src/cv/common/lib.typ b/src/cv/common/lib.typ index 19704fb..2245788 100644 --- a/src/cv/common/lib.typ +++ b/src/cv/common/lib.typ @@ -1,5 +1,5 @@ #import "metadata.typ": * -#import "@preview/fontawesome:0.4.0": * +#import "@preview/fontawesome:0.5.0": * #let languageItem( lang: "", diff --git a/src/cv/cv-theme.typ b/src/cv/cv-theme.typ index 337c003..4c6e65b 100644 --- a/src/cv/cv-theme.typ +++ b/src/cv/cv-theme.typ @@ -1,4 +1,4 @@ -#import "@preview/fontawesome:0.4.0": * +#import "@preview/fontawesome:0.5.0": * #import "common/metadata.typ": * #import "common/lib.typ": * @@ -35,8 +35,7 @@ // --- Paragraphs --- // Source: https://typst.app/docs/guides/guide-for-latex-users/ - set par(justify: true) - show par: set block(spacing: .75em) + set par(justify: true, spacing: .75em) // --- Links --- show link: it => {