From 6ff67357c770f35ab3aea4a0ea9fcb56af3a97c6 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 27 Jul 2023 10:08:42 -0400 Subject: fix resume build Signed-off-by: Xe Iaso --- flake.nix | 10 +++++----- 1 file 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 ''; }; -- cgit v1.2.3