diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-07-08 15:59:09 +0200 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2021-07-13 14:07:40 +0200 |
commit | f082c435dd187f92b8423413dff9d0b11c7195f7 (patch) | |
tree | 3b1c94e30b5da48d54b81a42a69c3af1d37920bd /pkgs/applications/editors/apostrophe | |
parent | 70002f24a5d6d5f2992508548b36d6ae947f369b (diff) | |
download | nixpkgs-f082c435dd187f92b8423413dff9d0b11c7195f7.tar nixpkgs-f082c435dd187f92b8423413dff9d0b11c7195f7.tar.gz nixpkgs-f082c435dd187f92b8423413dff9d0b11c7195f7.tar.bz2 nixpkgs-f082c435dd187f92b8423413dff9d0b11c7195f7.tar.lz nixpkgs-f082c435dd187f92b8423413dff9d0b11c7195f7.tar.xz nixpkgs-f082c435dd187f92b8423413dff9d0b11c7195f7.tar.zst nixpkgs-f082c435dd187f92b8423413dff9d0b11c7195f7.zip |
apostrophe: fix HTML export by referencing fira fonts from store
pandoc can embed fonts and stylesheets on export which apostrophe uses — however it has hardcoded paths for the fonts which only work in the flatpak version, so we need to substitute them.
Diffstat (limited to 'pkgs/applications/editors/apostrophe')
-rw-r--r-- | pkgs/applications/editors/apostrophe/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/applications/editors/apostrophe/default.nix b/pkgs/applications/editors/apostrophe/default.nix index 851c3ea1c2f..df0be4ccfbe 100644 --- a/pkgs/applications/editors/apostrophe/default.nix +++ b/pkgs/applications/editors/apostrophe/default.nix @@ -2,7 +2,7 @@ , wrapGAppsHook, pkg-config, desktop-file-utils , appstream-glib, pythonPackages, glib, gobject-introspection , gtk3, webkitgtk, glib-networking, gnome, gspell, texlive -, shared-mime-info, libhandy +, shared-mime-info, libhandy, fira }: let @@ -31,6 +31,12 @@ in stdenv.mkDerivation rec { glib-networking libhandy ]; postPatch = '' + substituteInPlace data/media/css/web/base.css \ + --replace 'url("/app/share/fonts/FiraSans-Regular.ttf") format("ttf")' \ + 'url("${fira}/share/fonts/opentype/FiraSans-Regular.otf") format("otf")' \ + --replace 'url("/app/share/fonts/FiraMono-Regular.ttf") format("ttf")' \ + 'url("${fira}/share/fonts/opentype/FiraMono-Regular.otf") format("otf")' + patchShebangs --build build-aux/meson_post_install.py ''; |