summaryrefslogtreecommitdiff
path: root/pkgs/bookwyrm/default.nix
diff options
context:
space:
mode:
authorMira Ressel2025-06-10 21:02:40 +0200
committerMira Ressel2025-06-12 11:09:15 +0200
commitd629abee4d61588a245e0a77d8ea8dde4d551698 (patch)
treea0c4d6a3d6606b1debb2923d4ad3ca622aca547c /pkgs/bookwyrm/default.nix
parent010a2bb354b309c48092014904d4944b6d6eb9ca (diff)
bookwyrm: provide SourceHanSans fontHEADmain
Currently, bookwyrm tries unsuccessfully to download it itself during both build and runtime.
Diffstat (limited to 'pkgs/bookwyrm/default.nix')
-rw-r--r--pkgs/bookwyrm/default.nix3
1 files changed, 3 insertions, 0 deletions
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"} \