font-manager: allow building without webkit

webkit is only beneficial if browsing non-local fonts and building
without it greatly reduces closure size (measurements from
`nix path-info -S` on x86_64):

- `withWebkit=true`: 1203033312
- `withWebkit=false`: 372203760

upstream calls this feature "Google Font integration" here:
- <https://github.com/FontManager/font-manager#building-from-source>

but it's controlled via the "webkit" meson flag:
- <https://github.com/FontManager/font-manager/blob/master/meson.build#L29>

Colin 54931faf d7b87590

+5 -4
+5 -4
pkgs/applications/misc/font-manager/default.nix
··· 18 18 , desktop-file-utils 19 19 , wrapGAppsHook 20 20 , gobject-introspection 21 - , libsoup 22 - , glib-networking 23 - , webkitgtk 21 + # withWebkit enables the "webkit" feature, also known as Google Fonts 22 + , withWebkit ? true, glib-networking, libsoup, webkitgtk 24 23 }: 25 24 26 25 stdenv.mkDerivation rec { ··· 56 55 gsettings-desktop-schemas # for font settings 57 56 gtk3 58 57 gnome.adwaita-icon-theme 58 + ] ++ lib.optionals withWebkit [ 59 + glib-networking # for SSL so that Google Fonts can load 59 60 libsoup 60 - glib-networking # for SSL so that Google Fonts can load 61 61 webkitgtk 62 62 ]; 63 63 64 64 mesonFlags = [ 65 65 "-Dreproducible=true" # Do not hardcode build directory… 66 + (lib.mesonBool "webkit" withWebkit) 66 67 ]; 67 68 68 69 postPatch = ''