aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-07-27 10:08:42 -0400
committerXe Iaso <me@xeiaso.net>2023-07-27 10:08:42 -0400
commit6ff67357c770f35ab3aea4a0ea9fcb56af3a97c6 (patch)
treefa4629287889e306eeffdec1e9a4575a29c695dd
parentd037fa15585858a2f02877110ab2ad6e9cb9a25a (diff)
downloadxesite-6ff67357c770f35ab3aea4a0ea9fcb56af3a97c6.tar.xz
xesite-6ff67357c770f35ab3aea4a0ea9fcb56af3a97c6.zip
fix resume build
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--flake.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index c164067..ebbe33e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -43,12 +43,12 @@
tex = with pkgs;
texlive.combine { inherit (texlive) scheme-medium bitter titlesec; };
- typstWithIosevka = let
- fontsConf = pkgs.symlinkJoin {
+ fontsConf = pkgs.symlinkJoin {
name = "typst-fonts";
paths = [ "${self.packages.${system}.iosevka}/static/css/iosevka" ];
};
- in pkgs.writeShellApplication {
+
+ typstWithIosevka = pkgs.writeShellApplication {
name = "typst";
text = ''
${pkgs.typst-dev}/bin/typst \
@@ -98,7 +98,7 @@
dhallPackages.Prelude
tex
pandoc
- typstWithIosevka
+ typst-dev
];
phases = "installPhase";
@@ -115,7 +115,7 @@
cp -vrf $src/dhall/resume/* .
dhall-to-json --file $src/dhall/resume.dhall --output resume.json
- typst compile resume.typ $out/static/resume/resume.pdf
+ typst compile --font-path ${fontsConf} resume.typ $out/static/resume/resume.pdf
'';
};