From d629abee4d61588a245e0a77d8ea8dde4d551698 Mon Sep 17 00:00:00 2001 From: Mira Ressel Date: Tue, 10 Jun 2025 21:02:40 +0200 Subject: bookwyrm: provide SourceHanSans font Currently, bookwyrm tries unsuccessfully to download it itself during both build and runtime. --- pkgs/bookwyrm/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/bookwyrm/default.nix b/pkgs/bookwyrm/default.nix index c043bdf..e4c55bf 100644 --- a/pkgs/bookwyrm/default.nix +++ b/pkgs/bookwyrm/default.nix @@ -2,6 +2,7 @@ , stdenvNoCC , writeShellScriptBin , writeText +, source-han-sans-vf-ttf , bookwyrm-unwrapped , settings ? { } }: @@ -56,6 +57,8 @@ in stdenvNoCC.mkDerivation (finalAttrs: { ./manage.py compile_themes ./manage.py collectstatic --no-input + ln -s ${source-han-sans-vf-ttf}/share/fonts/variable/SourceHanSans-VF.ttf.ttc static/fonts/source_han_sans/ + substituteInPlace contrib/systemd/* \ --replace /opt/bookwyrm/venv/bin/gunicorn ${lib.getExe bookwyrm-unwrapped.gunicorn} \ --replace /opt/bookwyrm/venv/bin/celery ${lib.getExe' bookwyrm-unwrapped.celery "celery"} \ -- cgit v1.2.3